Tribe__Tickets__Admin__Move_Tickets::get_post_choices()
Responds to requests for a list of possible destination posts.
Source
File: src/Tribe/Admin/Move_Tickets.php
public function get_post_choices() {
if ( ! wp_verify_nonce( $_POST['check' ], 'move_tickets' ) ) {
wp_send_json_error();
}
$args = wp_parse_args( $_POST, array(
'post_type' => '',
'search_terms' => '',
'ignore' => '',
) );
wp_send_json_success(
array(
'posts' => $this->get_possible_matches( $args ),
)
);
}