Created
January 20, 2019 19:52
-
-
Save raulillana/4ffef2b6896032e743d8339b860a3cef to your computer and use it in GitHub Desktop.
Require or include wp-load.php dynamically on Trellis Stack
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
<?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