Jump to content
Sign in to follow this  
2gen

PageLines global "debug" variable

Recommended Posts

2gen

Hey all, I want to output some debugging information in a few custom Sections I've made. I only want to do this while PageLines is in debug mode. Is there a global variable somewhere that I can access that will allow me to do this? The Sections API seems to redirect to a "Options API" page. Thanks

Share this post


Link to post
Share on other sites
Simon
if debug is enabled, and wp_debug is enabled use plprint() like this: plprint( $somevar, 'nice title' ); $somevar can be a string, object or array and will be nicely printed to the footer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×