Created
June 24, 2017 22:25
-
-
Save tech4him/354c1122c97cb535bb455113937d5e5f to your computer and use it in GitHub Desktop.
GeoDirectory vs. Them My Login - Conflict Resolution (Search)
This file contains 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
function _my_geodir_search_init () { | |
if(isset($_REQUEST['geodir_search'])){ | |
if(class_exists( 'Theme_My_Login' )) { | |
remove_action( 'pre_get_posts', array( Theme_My_Login::get_object(), 'pre_get_posts' ) ); | |
} | |
} | |
} | |
add_action('init','_my_geodir_search_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment