Skip to content

Instantly share code, notes, and snippets.

@betweenbrain
Created February 15, 2020 00:39
Show Gist options
  • Select an option

  • Save betweenbrain/40142f047a0ab4968de50ddf53f6e5d7 to your computer and use it in GitHub Desktop.

Select an option

Save betweenbrain/40142f047a0ab4968de50ddf53f6e5d7 to your computer and use it in GitHub Desktop.

Revisions

  1. betweenbrain created this gist Feb 15, 2020.
    11 changes: 11 additions & 0 deletions load.php
    Original 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();
    }