tribulant

Example of wpco_products_conditions filter hook

Aug 27th, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function my_products_conditions($conditions = array()) {
  2.     //do something here by removing or appending to the $conditions array.
  3.     //for example...
  4.     $conditions['suplier_id'] = "9";
  5.     return $conditions;
  6. }
  7.  
  8. add_filter('wpco_products_conditions', 'my_products_conditions', 10, 1);
Advertisement
Add Comment
Please, Sign In to add comment