Skip to content

Instantly share code, notes, and snippets.

@petervanderdoes
Created June 11, 2014 23:21
Show Gist options
  • Save petervanderdoes/8b9a08cfb3b206dc5f83 to your computer and use it in GitHub Desktop.
Save petervanderdoes/8b9a08cfb3b206dc5f83 to your computer and use it in GitHub Desktop.
When WordPress is in alternative directory change the last lines in wp-config.php
if ( !defined( 'ABSPATH' ) )
define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );
if (!class_exists('WP_CLI\Runner'))
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment