should_load_remote_block_patterns хук-фильтрWP 5.8.0

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 Введена.

Где вызывается хук

_load_remote_block_patterns()
should_load_remote_block_patterns
_load_remote_featured_patterns()
should_load_remote_block_patterns
_register_remote_theme_patterns()
should_load_remote_block_patterns
wp-includes/block-patterns.php 75
$should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
wp-includes/block-patterns.php 103
$should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
wp-includes/block-patterns.php 138
if ( ! apply_filters( 'should_load_remote_block_patterns', true ) ) {

Где используется хук в WordPress

Использование не найдено.