woocommerce_navigation_wp_toolbar_disabled хук-фильтрWC 1.0

Adds the ability to skip disabling of the WP toolbar.

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

add_filter( 'woocommerce_navigation_wp_toolbar_disabled', 'wp_kama_woocommerce_navigation_wp_toolbar_disabled_filter' );

/**
 * Function for `woocommerce_navigation_wp_toolbar_disabled` filter-hook.
 * 
 * @param boolean $bool WP Toolbar disabled.
 *
 * @return boolean
 */
function wp_kama_woocommerce_navigation_wp_toolbar_disabled_filter( $bool ){

	// filter...
	return $bool;
}
$bool(true|false)
WP Toolbar disabled.

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

Screen::add_body_class()
woocommerce_navigation_wp_toolbar_disabled
woocommerce/src/Admin/Features/Navigation/Screen.php 160
if ( apply_filters( 'woocommerce_navigation_wp_toolbar_disabled', true ) ) {

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

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