acf/(hook_name)/ajax_validate_values filter-hookACF 1.0

Usage

add_filter( 'acf/(hook_name)/ajax_validate_values', 'wp_kama_acf_hook_name_ajax_validate_values_filter', 10, 2 );

/**
 * Function for `acf/(hook_name)/ajax_validate_values` filter-hook.
 * 
 * @param  $valid                    
 * @param  $POST_acf_ui_options_page 
 *
 * @return 
 */
function wp_kama_acf_hook_name_ajax_validate_values_filter( $valid, $POST_acf_ui_options_page ){
	// filter...
	return $valid;
}
$valid
-
$POST_acf_ui_options_page
-

Where the hook is called

ACF_UI_Options_Page::ajax_validate_values()
acf/(hook_name)/ajax_validate_values
ACF_Post_Type::ajax_validate_values()
acf/(hook_name)/ajax_validate_values
ACF_Taxonomy::ajax_validate_values()
acf/(hook_name)/ajax_validate_values
acf/pro/post-types/acf-ui-options-page.php 249
return apply_filters( "acf/{$this->hook_name}/ajax_validate_values", $valid, $_POST['acf_ui_options_page'] ); // phpcs:ignore WordPress.Security -- Raw input send to hook for validation.
acf/includes/post-types/class-acf-post-type.php 382
$valid = apply_filters( "acf/{$this->hook_name}/ajax_validate_values", $valid, $_POST['acf_post_type'] ); // phpcs:ignore WordPress.Security -- Raw input send to hook for validation.
acf/includes/post-types/class-acf-taxonomy.php 303
$valid = apply_filters( "acf/{$this->hook_name}/ajax_validate_values", $valid, $_POST['acf_taxonomy'] ); // phpcs:ignore WordPress.Security -- Raw input send to hook for validation.

Where the hook is used in Advanced Custom Fields PRO

Usage not found.