acf_field_taxonomy::ajax_querypublicACF 5.0.0

ajax_query

description

Method of the class: acf_field_taxonomy{}

No Hooks.

Returns

$post_id. (int)

Usage

$acf_field_taxonomy = new acf_field_taxonomy();
$acf_field_taxonomy->ajax_query();

Changelog

Since 5.0.0 Introduced.

acf_field_taxonomy::ajax_query() code ACF 6.0.4

function ajax_query() {

	// validate
	if ( ! acf_verify_ajax() ) {
		die();
	}

	// get choices
	$response = $this->get_ajax_query( $_POST );

	// return
	acf_send_ajax_results( $response );

}