woocommerce_admin_disabled filter-hookWC 1.0

Filter allowing WooCommerce Admin optional features to be disabled.

Usage

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.

Where the hook is called

Features::get_available_features()
woocommerce_admin_disabled
FeaturesController::get_setting_for_feature()
woocommerce_admin_disabled
WC_Admin_Assets::enqueue_block_editor_assets()
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 158
if ( apply_filters( 'woocommerce_admin_disabled', false ) ) {
woocommerce/src/Internal/Features/FeaturesController.php 778
$admin_features_disabled = apply_filters( 'woocommerce_admin_disabled', false );
woocommerce/includes/admin/class-wc-admin-assets.php 626
$admin_features_disabled = apply_filters( 'woocommerce_admin_disabled', false );
woocommerce/includes/admin/class-wc-admin-dashboard.php 159
$is_wc_admin_disabled = apply_filters( 'woocommerce_admin_disabled', false ) || ! Features::is_enabled( 'analytics' );
woocommerce/includes/class-wc-tracker.php 207
$data['wc_admin_disabled'] = apply_filters( 'woocommerce_admin_disabled', false ) ? 'yes' : 'no';

Where the hook is used in WooCommerce

Usage not found.