acf/taxonomy/prevent_access_to_wp_functions_in_meta_box_cb
acf/taxonomy/prevent_access_to_wp_functions_in_meta_box_cb
Appears in: advanced-custom-fields.6.3.6.3
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.6.3apply_filters('acf/taxonomy/prevent_access_to_wp_functions_in_meta_box_cb') is found 1 times:
- /includes/post-types/class-acf-taxonomy.php line 532
$acf_taxonomy = array_shift( $this_tax ); $original_cb = isset( $acf_taxonomy['meta_box_cb'] ) ? $acf_taxonomy['meta_box_cb'] : false; // Prevent access to any wp_ prefixed functions in a callback. if ( apply_filters( 'acf/taxonomy/prevent_access_to_wp_functions_in_meta_box_cb', true ) && substr( strtolower( $original_cb ), 0, 3 ) === 'wp_' ) { // Don't execute register meta box callbacks if an internal wp function by default. return; } $unset = array( '_POST', '_GET', '_REQUEST', '_COOKIE', '_SESSION', '_FILES', '_ENV', '_SERVER' ); $originals = array();