Stickyeyes Localtunnel Formatter
A WordPress plugin to be used in partnership with our WordPress framework to enable ngrok URLs to share local WordPress instances
by Matthew Shields · github.com/matthewshields/stickyeyes-localtunnel-formatter · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/matthewshields/stickyeyes-localtunnel-formatter/archive/refs/heads/master.zipFrom the readme
stickyeyes-localtunnel-formatter
A WordPress plugin to be used in partnership with our WordPress framework to enable ngrok URLs to share local WordPress instances.
Step One: Install ‘Stickyeyes Localtunnel Formatter’ Plugin
Firstly install the plugin into the site, there is no configuration required or any settings pages so is nice and easy.
Step Two: Add Snippet to wp-config.php
If you are using the new framework with seperated wp-config files, then just add this into the local version that you are wanting to share. There won’t be any errors if it is missing from your active wp-config, the plugin just won’t actually do anything till you do. If there is only a single wp-config then you can still add it as it won’t affect production.
What this will do is when it detects that you are accessing the site through an ngrok URL it will define the constants of WPSITEURL and WPHOME with the ngrok accesses URL, that way it can be dynamic as the URLs will change each time you spin one up. It will also define a constant to tell the plugin that the site is accessed through a localtunnel and to do its thing.
Step Three: Start the ngrok server
The steps up till this point will only need to b