Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created November 23, 2020 13:41
Show Gist options
  • Select an option

  • Save yousufansa/6027fd222eb2671c3e81cb262a493d1e to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/6027fd222eb2671c3e81cb262a493d1e to your computer and use it in GitHub Desktop.
Vodi - Single Movie v6 Re-Arrange the single movie description to top on the movie feature crew
if ( ! function_exists( 'vodi_child_template_single_movie_v6_rearrange_movie_description' ) ) {
function vodi_child_template_single_movie_v6_rearrange_movie_description() {
if ( vodi_get_single_movie_style() == 'v6' ) {
add_filter( 'masvideos_movie_attribute', 'vodi_template_single_movie_attribute', 10, 3 );
add_action( 'masvideos_single_movie_summary', 'vodi_template_single_movie_details', 28 );
remove_action( 'masvideos_after_single_movie_summary', 'vodi_template_single_movie_details', 15 );
}
}
}
add_action( 'masvideos_before_single_movie', 'vodi_child_template_single_movie_v6_rearrange_movie_description', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment