/vanrossum-dev-tools

WordPress plugin that provides some development tools for local development.

Primary LanguagePHP

Van Rossum dev-tools

This is a plugin that contains some handy features for WordPress development.

Debug helpers

Contains Symfony / Laravel like dump (and die) helper functions.

dump( $variable );
dd( $variable );
ray()->newScreen();
ray('Debug text')->green();
// etc.

ngrok support

Adds support for a local tunnel with ngrok. Based on the article of Matthew Shields.

Add the following to wp-config.php.

/* Check for ngrok tunnel. */
if ( isset( $_SERVER['HTTP_X_ORIGINAL_HOST'] ) && strpos( $_SERVER['HTTP_X_ORIGINAL_HOST'], 'ngrok' ) !== false ) {
	define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] );
	define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );
	define( 'LOCALTUNNEL_ACTIVE', true );
}