PHP Console Log
Log PHP variables and arrays to the web console in your browser via JavaScript's console.log(). No browser extensions required.
Next Milestone 30
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Rank Changes
Downloads Growth
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
Tracked Keywords
Showing 1 of 1| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| console.log | 34 | — | Tag | 1 week ago |
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 1.0.1
- Last Updated
- Feb 07, 2020
- Requires WP
- 4.4+
- Tested Up To
- 5.3.20
- PHP Version
- 5.6.20 or higher
- Author
- Marcus Viar
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 5
- Reviews
- 1
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
Frequently Asked Questions
Common questions about PHP Console Log
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.
See "Help" link found on plugins page in your WordPress Admin for more information.
----------- PHP Console Log -----------
The PHP Console log plugin is not activated.
Solution:
Activate the PHP Console Log Plugin.
Cause:
Another plugin has changed the order in which your plugins load. Making the PHP Console Log functions not available yet.
Solution:
PHP Console Log updates the order in which plugins are loaded any time a plugin is activated or deactivated. However, it is still possible for other plugins to change the order in which plugins load afterwards. Deactivate any plugins that change the order in which your plugins load.
Cause:
do_action( 'php_console_log', 'My String or Array' ); was called inside a block of code that was not run.
Solution:
Make sure the function you called do_action( 'php_console_log', 'My String or Array' ); in is run via an action or filter hook such as: add_action( 'init', 'my_function' ); Or call do_action( 'php_console_log', 'My String or Array' ); outside of any other functions in a file that you know is run.
Cause:
PHP throws errors. Side Note: Make sure you are using define( 'WP_DEBUG', true ); in your wp-config.php file so you can see PHP errors.
Solution:
Fix the error that PHP is showing you. Then try again.
How do I open the web console in Chrome?
Press Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, Chrome OS) to jump straight into the Console panel.
OR
Press the Ctrl + Shift + K (Command + Option + K on OS X) keyboard shortcut.
source: (https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console)
How do I open the web console in Safari?
Select Develop menu in the menu bar, choose Show JavaScript Console
If you don’t see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select "Show Develop menu in menu bar".
source: (https://support.apple.com/guide/safari-developer/develop-menu-dev39df999c1/mac)