skip to Main Content

Add an action button with a unique CSS class to WooCommerce my account orders

Here is my function for adding an option to my orders page: add_filter( 'woocommerce_my_account_my_orders_actions', 'add_my_account_my_orders_custom_action', 10, 2 ); function add_my_account_my_orders_custom_action( $actions, $order ) { $action_slug = 'specific_name'; $actions[$action_slug] = array( 'url' => home_url('/the_action_url/'), 'name' => 'The Button Text', ); return…

VIEW QUESTION

Exclude categories from product_categories shortcode using slug – Woocommerce

<div class="categories">[product_categories limit="10" columns="5" orderby="menu_order"]</div> Is it possible to hook into product categories shortcode and filter out specific categories from returning (by slug), like you can with products using woocommerce_shortcode_products_query hook. add_filter( 'woocommerce_shortcode_products_query', 'xaa_remove_category', 50, 3); function xaa_remove_category( $query_args, $atts,…

VIEW QUESTION
Back To Top
Search