Last active
July 6, 2020 10:49
-
-
Save farookibrahim/2c7157206c82d39396573035c1a8cb13 to your computer and use it in GitHub Desktop.
Vodi - Movies Rating Filter force 1st page after filter
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_movies_rating_filter_link' ) ) { | |
| function vodi_child_movies_rating_filter_link( $link ) { | |
| $pattern = '/page\\/[0-9]+\\//i'; | |
| $link = preg_replace( $pattern, '', $link ); | |
| return $link; | |
| } | |
| } | |
| add_filter( 'masvideos_movies_rating_filter_link', 'vodi_child_movies_rating_filter_link', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment