Support » Plugin: Code Snippets » Echo in admin panel

  • When creating snippets it can be very helpful to use echo for variable inspection. This could be through echoing a simple line to page source, a php variable to a javascript console.log command, or similar.

    Currently it does not seem possible to execute a snippet in the admin area and echo to anywhere that is browser accessible.

    Is it possible, or is it in the plan, to be able to echo when executing a snippet in the admin panel?

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge


    I like to include messages in the admin footer, as it’s visible on every admin page.

    Here’s an example:

    add_filter( 'admin_footer_text', function ( $text ) {
    	$data = run_some_function();
    	var_dump( $data );
    	return $text;
    } );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.