block_local_requests

block_local_requests

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('block_local_requests') is found 1 times:

  • /wp-includes/class-wp-http.php line 913
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
         * @since 2.8.0
         *
         * @param bool $block Whether to block local requests. Default false.
         */
        return apply_filters( 'block_local_requests', false );
    }
     
    if ( ! defined( 'WP_ACCESSIBLE_HOSTS' ) ) {
        return true;
    }

See this hook used in plugins: