Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. /**
  2. * woocommerce_shop_loop_item_title hook.
  3. *
  4. * @hooked woocommerce_template_loop_product_title - 10
  5. */
  6. do_action( 'woocommerce_shop_loop_item_title' );
  7.  
  8. /**
  9. * woocommerce_after_shop_loop_item_title hook.
  10. *
  11. * @hooked woocommerce_template_loop_rating - 5
  12. * @hooked woocommerce_template_loop_price - 10
  13. */
  14. do_action( 'woocommerce_after_shop_loop_item_title' );
  15.  
  16. /**
  17. * woocommerce_after_shop_loop_item hook.
  18. *
  19. * @hooked woocommerce_template_loop_product_link_close - 5
  20. * @hooked woocommerce_template_loop_add_to_cart - 10
  21. */
  22. do_action( 'woocommerce_after_shop_loop_item' );
  23.  
  24. ...
  25.  
  26. ...
  27. /**
  28. * Adds the Switch View buttons
  29. */
  30. function shophistic_lite_show_attribute() {
  31. ...
  32. }
  33. add_action( 'woocommerce_after_shop_loop_item_title', 'shophistic_lite_show_attribute', 15 );
  34. ...
  35.  
  36. ...
  37. function remove_functions() {
  38. remove_action( 'woocommerce_after_shop_loop_item_title', 'shophistic_lite_show_attribute', 15 );
  39. }
  40. add_action('woocommerce_after_shop_loop_item' , 'remove_functions' );
  41. ...
  42.  
  43. function child_custom_actions() {
  44. remove_action( 'woocommerce_after_shop_loop_item_title', 'shophistic_lite_show_attribute', 15 );
  45. }
  46. add_action( 'init' , 'child_custom_actions' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement