Advertisement
fauzanjeg

JNews || Remove Post View Stats from Account Pages

Aug 1st, 2023
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /**
  2.  * Remove Post View Stats from Account Pages
  3.  */
  4. function jnews_filter_account_page_endpoint( $endpoint ) {
  5.     unset( $endpoint['post_view_stats'] );
  6.     return $endpoint;
  7. }
  8. add_filter( 'jnews_account_page_endpoint', 'jnews_filter_account_page_endpoint' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement