Skip to content

Instantly share code, notes, and snippets.

@raulillana
Created January 20, 2019 19:52
Show Gist options
  • Save raulillana/4ffef2b6896032e743d8339b860a3cef to your computer and use it in GitHub Desktop.
Save raulillana/4ffef2b6896032e743d8339b860a3cef to your computer and use it in GitHub Desktop.
Require or include wp-load.php dynamically on Trellis Stack
<?php
// Require or include wp-load.php dynamically on Trellis Stack
// Consider double-checking your custom app env vars for correct routing
$parse_uri = explode( 'app', $_SERVER['SCRIPT_FILENAME'] );
require_once( $parse_uri[0] . 'wp/wp-load.php' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment