Variable Logger
WordPress Plugin that replaces print_r() and var_dump()
★ 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/nikschavan/variable-logger/archive/refs/heads/master.zipReplacement for print_r() and var_dump().
Description
Variable Logger provides a replacement function vl() for print_r() and var_dump() with some default styling for your variable ourputs.
Usage -
vl( $foo ) to use print_r() funcion, and vl( $foo, true ) to use var_dump()
Installation
A. Simple.
Install as a WordPress plugin.
- Download the latest ZIP file of this repo.
- Install and activate as a simple plugin in your WordPress site.
B. Pro.
Install as a WordPress mu-plugin.
- Make a folder
/wp-content/mu-pluginsif it does not exist in your WordPress devlopment enviornment. - Open up git inside
mu-plugins, and add a remote -git add remote origin git@github.com:Nikschavan/variable-logger.git - Pull the latest plugin files -
git pull origin master
Contribute
Wan't to improve these functions?
- Create an issue
- Fork this repo.
- Submit a pull request!