woocommerce_show_addons_page
Controls whether we add a submenu item for the WooCommerce Addons page. Woo Express uses this filter.
Usage
add_filter( 'woocommerce_show_addons_page', 'wp_kama_woocommerce_show_addons_page_filter' );
/**
* Function for `woocommerce_show_addons_page` filter-hook.
*
* @param bool $show_addons_page If the addons page should be included.
*
* @return bool
*/
function wp_kama_woocommerce_show_addons_page_filter( $show_addons_page ){
// filter...
return $show_addons_page;
}
- $show_addons_page(true|false)
- If the addons page should be included.
Changelog
| Since 8.2.1 | Introduced. |
Where the hook is called
woocommerce_show_addons_page
woocommerce/includes/admin/class-wc-admin-menus.php 58
if ( apply_filters( 'woocommerce_show_addons_page', true ) ) {