Title: Changing priority
Last modified: August 21, 2016

---

# Changing priority

 *  Resolved [sunyata84](https://wordpress.org/support/users/sunyata84/)
 * (@sunyata84)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/changing-priority/)
 * Hi – First off want to thank you for this plugin, I have a client who wanted 
   this functionality and I’ve never been able to get the various solutions around
   the net to work properly..
 * Though, In order to get it to work properly on the clients site, I’ve had to 
   modify the priority of wppp_hook_locations(), so the drop-down ends up in the
   proper float order on the page.
 * Is there a preferred way for me to do this instead of altering the plugin code
   and risking breakage when it updates? I know I can fork the plugin, but looking
   at all the options.
 * [https://wordpress.org/plugins/woocommerce-products-per-page/](https://wordpress.org/plugins/woocommerce-products-per-page/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/changing-priority/#post-4793228)
 * Hi sunyata84,
 * Glad you like the plugin 🙂
 * If I understand correctly its about changing the priority of the action hook ‘
   woocommerce_before_shop_loop’ right?
 * If so you could do this if you want the dropdown priority set to (lets say) 90
   on top and bottom of the page: (add to functions.php)
 *     ```
       remove_action( 'woocommerce_before_shop_loop', array( $wppp, 'wppp_dropdown_object' ) );
       remove_action( 'woocommerce_after_shop_loop', array( $wppp, 'wppp_dropdown_object' ) );
   
       add_action( 'woocommerce_before_shop_loop', array( $wppp, 'wppp_dropdown_object' ), 90 );
       add_action( 'woocommerce_after_shop_loop', array( $wppp, 'wppp_dropdown_object' ), 90 );
       ```
   
 * This removes the action with (your) wrong priority and replaces it with your 
   selected priority.
    Let me know if this is what you were looking for!
 *  Thread Starter [sunyata84](https://wordpress.org/support/users/sunyata84/)
 * (@sunyata84)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/changing-priority/#post-4793285)
 * Yeah thats it exactly. I’m assuming I can put this in functions.php to override
   it?
 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/changing-priority/#post-4793288)
 * Good!, yes put it in your functions.php
 *  Thread Starter [sunyata84](https://wordpress.org/support/users/sunyata84/)
 * (@sunyata84)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/changing-priority/#post-4793292)
 * Thanks so much for the tip. Not sure why that wasn’t connecting for me. I think
   I was trying to make it too complicated!
 * Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Changing priority’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-per-page/assets/icon-256x256.jpg?rev
   =1090359)
 * [Products Per Page for WooCommerce](https://wordpress.org/plugins/woocommerce-products-per-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-per-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-per-page/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-per-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-per-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-per-page/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [sunyata84](https://wordpress.org/support/users/sunyata84/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/changing-priority/#post-4793292)
 * Status: resolved