woocommerce_analytics_menu_capability

woocommerce_analytics_menu_capability

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.6.5.1

apply_filters('woocommerce_analytics_menu_capability') is found 1 times:

  • /packages/woocommerce-admin/src/Loader.php line 196
    			 * Filters the required capability to use the analytics features.
    			 *
    			 * @param string $capability WordPress capability.
    			 */
    			static::$required_capability = apply_filters( 'woocommerce_analytics_menu_capability', 'view_woocommerce_reports' );
    		}
    		return static::$required_capability;
    	}
    
    	/**
    	 * Helper function indicating whether the current user has the required analytics capability.