Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created May 13, 2020 21:54
Show Gist options
  • Save ibndawood/4bbed20b595d9af9b91e12b81811cef1 to your computer and use it in GitHub Desktop.
Save ibndawood/4bbed20b595d9af9b91e12b81811cef1 to your computer and use it in GitHub Desktop.
Vodi - Remove recommended movies and single movie tabs
add_action( 'masvideos_before_single_movie', 'vd_child_remove_recommended_movies', 20 );
add_action( 'masvideos_before_single_movie', 'vd_child_remove_single_movie_tabs', 20 );
function vd_child_remove_recommended_movies() {
remove_action( 'masvideos_after_single_movie_summary', 'vodi_recommended_movies', 98 );
}
function vd_child_remove_single_movie_tabs() {
remove_action( 'masvideos_after_single_movie_summary', 'masvideos_template_single_movie_tabs', 95 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment