"how to print to console from a php file in wordpress" Code Answer

4

if you are thinking about the javascript console, you can not do this from php.

you have a few options you could choose from:

  • echo
  • var_dump
  • create a log file
  • xdebug

for a quick check for a variables value i would use var_dump, it will also show you the data type of the variable. this will be output to the browser when you request the page.

By user658991 on July 10 2022

Answers related to “how to print to console from a php file in wordpress”

Only authorized users can answer the Search term. Please sign in first, or register a free account.