wp_navigation_should_create_fallback хук-фильтрWP 6.3.0

Filters whether or not a fallback should be created.

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

add_filter( 'wp_navigation_should_create_fallback', 'wp_kama_navigation_should_create_fallback_filter' );

/**
 * Function for `wp_navigation_should_create_fallback` filter-hook.
 * 
 * @param bool $create Whether to create a fallback navigation menu.
 *
 * @return bool
 */
function wp_kama_navigation_should_create_fallback_filter( $create ){

	// filter...
	return $create;
}
$create(true|false)
Whether to create a fallback navigation menu.
По умолчанию: true

Список изменений

С версии 6.3.0 Введена.

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

WP_Navigation_Fallback::get_fallback()
wp_navigation_should_create_fallback
wp-includes/class-wp-navigation-fallback.php 79
$should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true );

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

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