Filter to disable remote block patterns.
$should_load_remoteboolwp-includes/block-patterns.php:299_load_remote_block_patterns()wp-includes/block-patterns.php:332_load_remote_featured_patterns()wp-includes/block-patterns.php:371_register_remote_theme_patterns() * Filter to disable remote block patterns. * * @since 5.8.0 * * @param bool $should_load_remote */ $should_load_remote = apply_filters( 'should_load_remote_block_patterns', true ); if ( $supports_core_patterns && $should_load_remote ) { $request = new WP_REST_Request( 'GET', '/wp/v2/pattern-directory/patterns' ); $core_keyword_id = 11; // 11 is the ID for "core". $request->set_param( 'keyword', $core_keyword_id ); $response = rest_do_request( $request );Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.