Skip to content

Instantly share code, notes, and snippets.

@hykw
Last active August 29, 2015 14:03
Show Gist options
  • Save hykw/85860e7e9b5bfdd113d6 to your computer and use it in GitHub Desktop.
Save hykw/85860e7e9b5bfdd113d6 to your computer and use it in GitHub Desktop.
wordpress: 相対パスでのwp-load.phpの読み込み方
$wpload = sprintf('%s/wp-load.php', $_SERVER['DOCUMENT_ROOT']);
require_once($wpload);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment