Created
November 6, 2018 15:01
-
-
Save eto4detak/5de941a1ceb62e50c968fe12de2067d7 to your computer and use it in GitHub Desktop.
wp php включать wp-load.php
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 characters
<?php | |
// /включать wp-load.php | |
if(!defined(ABSPATH)){ | |
$pagePath = explode('/wp-content/', dirname(__FILE__)); | |
include_once(str_replace('wp-content/' , '', $pagePath[0] . '/wp-load.php')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment