Created
February 15, 2020 00:39
-
-
Save betweenbrain/40142f047a0ab4968de50ddf53f6e5d7 to your computer and use it in GitHub Desktop.
Revisions
-
betweenbrain created this gist
Feb 15, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ global $wp; $current_url = add_query_arg( array(), $wp->request ); // echo '<pre>' . print_r($wp->request, true) . '</pre>'; // Add logic here: $load = locate_template( 'archive-activity.php', true ); if ( $load ) { // just exit if template was found and loaded exit(); }