acf/ajax/check_screen/response
Filters the check_screen response, allowing extensions to attach extra data tied to the screen.
Usage
add_filter( 'acf/ajax/check_screen/response', 'wp_kama_acf_ajax_check_screen_response_filter', 10, 3 );
/**
* Function for `acf/ajax/check_screen/response` filter-hook.
*
* @param array $response The response array.
* @param array $field_groups The field groups returned for this screen.
* @param array $args The check_screen request args.
*
* @return array
*/
function wp_kama_acf_ajax_check_screen_response_filter( $response, $field_groups, $args ){
// filter...
return $response;
}
- $response(array)
- The response array.
- $field_groups(array)
- The field groups returned for this screen.
- $args(array)
- The check_screen request args.
Changelog
| Since 6.8.1 | Introduced. |
Where the hook is called
acf/ajax/check_screen/response
acf/includes/ajax/class-acf-ajax-check-screen.php 120
return apply_filters( 'acf/ajax/check_screen/response', $response, $field_groups, $args );
Where the hook is used in Advanced Custom Fields PRO
acf/src/Pro/Datastore/Check_Screen.php 31
add_filter( 'acf/ajax/check_screen/response', array( $this, 'attach_store_data' ), 10, 3 );