woocommerce_marketplace_menu_items
The marketplace items used in the menu.
Usage
add_filter( 'woocommerce_marketplace_menu_items', 'wp_kama_woocommerce_marketplace_menu_items_filter' ); /** * Function for `woocommerce_marketplace_menu_items` filter-hook. * * @param $marketplace_pages * * @return */ function wp_kama_woocommerce_marketplace_menu_items_filter( $marketplace_pages ){ // filter... return $marketplace_pages; }
- $marketplace_pages
- -
Changelog
Since 8.0 | Introduced. |
Where the hook is called
woocommerce_marketplace_menu_items
woocommerce/src/Internal/Admin/Marketplace.php 82
return apply_filters( 'woocommerce_marketplace_menu_items', $marketplace_pages );