This is a plugin that contains some handy features for WordPress development.
Contains Symfony / Laravel like dump (and die) helper functions.
dump( $variable );
dd( $variable );
ray()->newScreen();
ray('Debug text')->green();
// etc.
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 );
}