Advertisement
arie_cristianD

change my account menu structure

Jul 8th, 2025
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. add_filter( 'jnews_account_page_endpoint', 'change_account_page_menu', 99 );
  2.  
  3. function change_account_page_menu( $endpoint ) {
  4.     $endpoint = array(
  5.         'account'           =>
  6.         array(
  7.             'slug'  => 'account',
  8.             'label' => 'my_account',
  9.             'title' => 'My Account',
  10.         ),
  11.         'edit_account'      =>
  12.         array(
  13.             'slug'  => 'edit-account',
  14.             'label' => 'edit_account',
  15.             'title' => 'Edit Account',
  16.         ),
  17.         'change_password'   =>
  18.         array(
  19.             'slug'  => 'change-password',
  20.             'label' => 'change_password',
  21.             'title' => 'Change Password',
  22.         ),
  23.         'post_view_stats'   =>
  24.         array(
  25.             'title' => 'Post View Stats',
  26.             'label' => 'post_view_stats',
  27.             'slug'  => 'post-view-stats',
  28.         ),
  29.         'my_post'           =>
  30.         array(
  31.             'title' => 'My Post',
  32.             'label' => 'my_post',
  33.             'slug'  => 'my-post',
  34.         ),
  35.         'jnews_paywall_sub' =>
  36.         array(
  37.             'title' => 'Subscription',
  38.             'slug'  => 'my-subscription',
  39.             'label' => 'my_subscription',
  40.         ),
  41.         'liked'             =>
  42.         array(
  43.             'title' => 'Liked Post',
  44.             'slug'  => 'liked-post',
  45.             'label' => 'liked_post',
  46.         ),
  47.         'disliked'          =>
  48.         array(
  49.             'title' => 'Disliked Post',
  50.             'slug'  => 'disliked-post',
  51.             'label' => 'disliked_post',
  52.         ),
  53.     );
  54.  
  55.     return $endpoint;
  56. }
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement