should_load_remote_block_patterns
Filter to disable remote block patterns.
Usage
add_filter( 'should_load_remote_block_patterns', 'wp_kama_should_load_remote_block_patterns_filter' );
/**
* Function for `should_load_remote_block_patterns` filter-hook.
*
* @param bool $should_load_remote
*
* @return bool
*/
function wp_kama_should_load_remote_block_patterns_filter( $should_load_remote ){
// filter...
return $should_load_remote;
}
- $should_load_remote(true|false)
- -
Changelog
| Since 5.8.0 | Introduced. |
Where the hook is called
should_load_remote_block_patterns
should_load_remote_block_patterns
should_load_remote_block_patterns
wp-includes/block-patterns.php 234
$should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
wp-includes/block-patterns.php 267
$should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
wp-includes/block-patterns.php 306
if ( ! apply_filters( 'should_load_remote_block_patterns', true ) ) {