Skip to content

Instantly share code, notes, and snippets.

@tech4him
Created June 24, 2017 22:25
Show Gist options
  • Save tech4him/354c1122c97cb535bb455113937d5e5f to your computer and use it in GitHub Desktop.
Save tech4him/354c1122c97cb535bb455113937d5e5f to your computer and use it in GitHub Desktop.
GeoDirectory vs. Them My Login - Conflict Resolution (Search)
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