should_load_remote_block_patterns
Filter to disable remote block patterns.
Использование
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)
- -
Список изменений
С версии 5.8.0 | Введена. |
Где вызывается хук
should_load_remote_block_patterns
should_load_remote_block_patterns
should_load_remote_block_patterns
wp-includes/block-patterns.php 229
$should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
wp-includes/block-patterns.php 262
$should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
wp-includes/block-patterns.php 301
if ( ! apply_filters( 'should_load_remote_block_patterns', true ) ) {