Support » Plugin: WooCommerce Products Per Page » remove_action products_per_page_dropdown

  • Resolved al5dy

    (@al5dy)


    Hello,
    Why the following code does not work?
    remove_action( ‘woocommerce_before_shop_loop’, array(‘WPPP_Front_End’,’products_per_page_dropdown’), 25 );
    remove_action( ‘woocommerce_after_shop_loop’, array(‘WPPP_Front_End’,’products_per_page_dropdown’), 25 );

    How do I show a drop down anywhere on the page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thx, I found a solution, I just did not see a global wppp variable 🙂

    /*
     * Remove loop product per page
     */
    remove_action( 'woocommerce_before_shop_loop', array( $GLOBALS['wppp']->front_end, 'products_per_page_dropdown' ), 25 );
    remove_action( 'woocommerce_after_shop_loop', array( $GLOBALS['wppp']->front_end, 'products_per_page_dropdown' ), 25 );
    
    add_action('market_woo_product_per_page',array( $GLOBALS['wppp']->front_end, 'products_per_page_dropdown' ), 30);

    In front -> do_action('market_woo_product_per_page');

    • This reply was modified 4 months, 2 weeks ago by  al5dy.
    • This reply was modified 4 months, 2 weeks ago by  al5dy.
    Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    You can also use the setting for positioning to disable outputting the dropdowns on the shop pages 😉

    Cheers,
    Jeroen

    yes! thanx jeroen. hope everything is ok

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.