acf/taxonomy/prevent_access_to_wp_functions_in_meta_box_cb

acf/taxonomy/prevent_access_to_wp_functions_in_meta_box_cb

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.3.11

apply_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
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    $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();