Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created June 18, 2020 11:09
Show Gist options
  • Select an option

  • Save farookibrahim/07c8b39fff7433d5d2ca2c19536a2131 to your computer and use it in GitHub Desktop.

Select an option

Save farookibrahim/07c8b39fff7433d5d2ca2c19536a2131 to your computer and use it in GitHub Desktop.
Vodi - Movie v7 cast & crew section replace with movie v6 casts section
if ( ! function_exists( 'vodi_toggle_single_movie_v7_hooks' ) ) {
function vodi_toggle_single_movie_v7_hooks() {
if ( vodi_get_single_movie_style() == 'v7' ) {
remove_action( 'masvideos_after_single_movie_summary', 'masvideos_template_single_movie_cast_crew_tabs', 50 );
add_action( 'masvideos_after_single_movie_summary', 'vodi_template_single_movie_casts', 50 );
}
}
}
add_action( 'masvideos_before_single_movie', 'vodi_toggle_single_movie_v7_hooks', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment