WP Manifestindependent plugin directory
manifest / developer / variable-logger

Variable Logger

WordPress Plugin that replaces print_r() and var_dump()

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/nikschavan/variable-logger/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Replacement 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.

  1. Download the latest ZIP file of this repo.
  2. Install and activate as a simple plugin in your WordPress site.

B. Pro.

Install as a WordPress mu-plugin.

  1. Make a folder /wp-content/mu-plugins if it does not exist in your WordPress devlopment enviornment.
  2. Open up git inside mu-plugins, and add a remote - git add remote origin git@github.com:Nikschavan/variable-logger.git
  3. Pull the latest plugin files - git pull origin master

Contribute

Wan't to improve these functions?

  1. Create an issue
  2. Fork this repo.
  3. Submit a pull request!