Advertisement
fauzanjeg

Delete Some Menu on Account Menu Dropdown || Delete Related Video Menu

Nov 17th, 2021
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. /* Delete Some Menu on Account Menu Dropdown || Delete Related Video Menu */
  2. function delete_some_menu_on_account_menu_dropdown( $dropdown ) {
  3.     unset( $dropdown['my_channel'], $dropdown['video_favorite'], $dropdown['video_watch_later'], $dropdown['video_watch_history'] );
  4.     return $dropdown;
  5. }
  6. add_filter( 'jnews_dropdown_link', 'delete_some_menu_on_account_menu_dropdown', 99 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement