Advertisement
mbcreation

Qwep : rename a column

Mar 1st, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. //add this code to your functions.php theme file
  2.  
  3. //change mykey to the actual key. (If the key begin with an _ you will have two _ after name, it's normal.)
  4. add_filter('qwep_column_name_mykey', 'qwep_rename_column');
  5.  
  6. function qwep_rename_column()
  7. {
  8.     //replace the string with the column name you want
  9.     return 'My column name';
  10. }
  11.  
  12. //NOTE : if you want to rename several columns, copy this code many times, but change qwep_rename_column by qwep_rename_column1, qwep_rename_column2... twice each time.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement