Advertisement
Aurangajeb

Rename WPUF account page sections

Aug 4th, 2021 (edited)
1,227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. // filter/hook to rename WPUF Account page's sections
  2. add_filter('wpuf_account_sections',function ($sections){
  3.     $sections['post'] = 'Articles'; //rename 'Posts' Tab to 'Articles'
  4.     $sections['product'] = 'WC Product'; //rename 'Products' CPT Tab to 'WC Products'
  5.     return $sections;
  6. },999);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement