Advertisement
mbcreation

Quick export : add order post meta

Apr 16th, 2014
1,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. // put this code in your functions.php file in your theme
  2. // this example add a column named "follow colissimo" to the order export
  3. // it assumes that the post_meta's meta_key for the order is '_follow_colissimo'.
  4. // just change the key with your relevant key.
  5.  
  6. function wqep_included_order_keys_filter_custom($keys)
  7. {
  8.     array_push($keys, '_follow_colissimo');
  9.     //array_push($keys, 'another_key'); etc...
  10.     return $keys;
  11. }
  12.  
  13. add_filter( 'wqep_included_order_keys_filter', 'wqep_included_order_keys_filter_custom' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement