· 3 months ago · Jul 09, 2025, 02:46 AM
1add_filter( 'jnews_account_page_endpoint', 'change_account_page_menu', 99 );
2
3function 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