Log PHP variables and arrays to the web console in your browser via JavaScript's console.log(). No browser extensions required.
As of April 2026, PHP Console Log is a WordPress php plugin with 20 active installations and a 5/5 rating from 1 reviews. It has been downloaded 2.6K+ times in total. Requires WordPress 4.4+ and PHP 5.6.20+. Available on WordPress.org since 2019. Last updated 6 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
Place the do_action( ‘php_console_log’, ‘My String or Array’ ); function anywhere in your WordPress plugin PHP code. The value(s) you pass into do_action( ‘php_console_log’, ‘My String or Array’ ); will be logged to the web console in your browser.
$my_string = 'My String';
do_action( 'php_console_log', $my_string );
$my_array = array(
'elm 1'
'elm 2',
);
do_action( 'php_console_log', $my_array );
$my_array = array(
'key 1'=>'elm 1',
'key 2'=>'elm 2',
);
do_action( 'php_console_log', $my_array);
$my_array = array(
'My String 1',
'My String 2',…| WordPress | 4.4+ requiredTested up to 5.3.21 |
| PHP | 5.6.20+ required |
Initial release.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.