wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Handles Ajax request to get results for "autocomplete" fields in Builder
	 *
	 * Calls "tb_autocomplete_dataset_{$dataset}" filter which should return an assoc-array
	 *
	 * @since 4.6.5
	 */
Handles Ajax request to get results for "autocomplete" fields in Builder
Calls "tb_autocomplete_dataset_{$dataset}" filter which should return an assoc-array


Handles Ajax request to get results for " autocomplete " fields in Builder Calls " tb_autocomplete_dataset_ { $dataset } " filter which should return an assoc - array
public function tb_get_autocomplete() {
		if ( ! isset($_POST['value'] ) || empty( $_POST['dataset'] ) ) {
			wp_send_json_error();
		}
		$pid = (int) $_POST['pid'];
		$value = sanitize_text_field( $_POST['value'] );
		$dataset = sanitize_text_field( $_POST['dataset'] );
		$result = apply_filters( "tb_autocomplete_dataset_{$dataset}", array(), $value, $pid );
		wp_send_json_success( $result );
	}
public function tb_get_autocomplete ( ) { if ( ! isset ( $ _POST [ 'value' ] ) || empty ( $ _POST [ 'dataset' ] ) ) { wp_send_json_error ( ) ; } $ pid = ( int ) $ _POST [ 'pid' ] ; $ value = sanitize_text_field ( $ _POST [ 'value' ] ) ; $ dataset = sanitize_text_field ( $ _POST [ 'dataset' ] ) ; $ result = apply_filters ( " tb_autocomplete_dataset_ { $ dataset } " , array ( ) , $ value , $ pid ) ; wp_send_json_success ( $ result ) ; }
Handles Ajax request to get results for "autocomplete" fields in Builder
 Calls "tb_autocomplete_dataset_{$dataset}" filter which should return an assoc-array
Handles Ajax request to get results for " autocomplete " fields in Builder Calls " tb_autocomplete_dataset_ { $dataset } " filter which should return an assoc - array