acf/post_type/prevent_access_to_wp_functions_in_meta_box_cb
acf/post_type/prevent_access_to_wp_functions_in_meta_box_cb
Appears in: advanced-custom-fields.6.3.12
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.12apply_filters('acf/post_type/prevent_access_to_wp_functions_in_meta_box_cb') is found 1 times:
- /includes/post-types/class-acf-post-type.php line 646
$acf_post_type = array_shift( $this_post ); $original_cb = isset( $acf_post_type['register_meta_box_cb'] ) ? $acf_post_type['register_meta_box_cb'] : false; // Prevent access to any wp_ prefixed functions in a callback. if ( apply_filters( 'acf/post_type/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();