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

Filter allowing WooCommerce Admin optional features to be disabled.

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

add_filter( 'woocommerce_admin_disabled', 'wp_kama_woocommerce_admin_disabled_filter' );

/**
 * Function for `woocommerce_admin_disabled` filter-hook.
 * 
 * @param bool $disabled False.
 *
 * @return bool
 */
function wp_kama_woocommerce_admin_disabled_filter( $disabled ){

	// filter...
	return $disabled;
}
$disabled(true|false)
False.

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

Features::get_available_features()
woocommerce_admin_disabled
Features::add_features_settings()
woocommerce_admin_disabled
InboxNotifications::create_surface_cart_checkout_blocks_notification()
woocommerce_admin_disabled
WC_Admin_Dashboard::status_widget()
woocommerce_admin_disabled
WC_Tracker::get_tracking_data()
woocommerce_admin_disabled
woocommerce/src/Admin/Features/Features.php 159
if ( apply_filters( 'woocommerce_admin_disabled', false ) ) {
woocommerce/src/Admin/Features/Features.php 285
$features_disabled = apply_filters( 'woocommerce_admin_disabled', false );
woocommerce/packages/woocommerce-blocks/src/InboxNotifications.php 76
if ( apply_filters( 'woocommerce_admin_disabled', false ) ) {
woocommerce/includes/admin/class-wc-admin-dashboard.php 130
$is_wc_admin_disabled = apply_filters( 'woocommerce_admin_disabled', false );
woocommerce/includes/class-wc-tracker.php 176
$data['wc_admin_disabled'] = apply_filters( 'woocommerce_admin_disabled', false ) ? 'yes' : 'no';

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

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