Last active
December 2, 2020 05:01
-
-
Save yousufansa/96402ed50a2d8a6afddebcdaf0e6e844 to your computer and use it in GitHub Desktop.
Vodi - Remove playlist feature from Movie, Video & TV Show
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if( ! function_exists( 'vodi_child_mv_customize_account_menu_items' ) ) { | |
| function vodi_child_mv_customize_account_menu_items( $items, $endpoints ) { | |
| unset( $items['movie-playlists'] ); | |
| unset( $items['video-playlists'] ); | |
| unset( $items['tv-show-playlists'] ); | |
| return $items; | |
| } | |
| } | |
| add_filter( 'masvideos_account_menu_items', 'vodi_child_mv_customize_account_menu_items', 20, 2 ); | |
| if ( ! function_exists( 'vodi_child_modify_header_user_account_menu_items' ) ) { | |
| function vodi_child_modify_header_user_account_menu_items( $user_account_menu_items ) { | |
| unset( $user_account_menu_items['movie-playlists'] ); | |
| unset( $user_account_menu_items['video-playlists'] ); | |
| unset( $user_account_menu_items['tv-show-playlists'] ); | |
| return $user_account_menu_items; | |
| } | |
| } | |
| add_filter( 'vodi_header_user_account_menu_items', 'vodi_child_modify_header_user_account_menu_items', 10 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .movie-actions--link_add-to-playlist, | |
| .video-actions--link_add-to-playlist, | |
| .tv-show-actions--link_add-to-playlist { | |
| display: none; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment