Aurangajeb

Rename WPUF account page sections

Aug 4th, 2021
890
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // filter/hook to rename WPUF Account page's tab/section
  2. add_filter('wpuf_account_sections',function ($sections){
  3.     $sections['product'] = 'WC Product'; //rename 'product' CPT Tab to 'WC Product'
  4.     $sections['artwork'] = 'My Artworks'; //rename 'artwork' CPT Tab to 'My Artworks'
  5.     return $sections;
  6. },999);
RAW Paste Data