Skip to content

Display debug content without login?

Frank Bültge edited this page Nov 2, 2017 · 1 revision

If you will display the content of all debug functionalities you must add a small plugin to remove the capability check of the plugin Debug Objects, the the example below. This feature is usable since version 2.5.0.

<?php
/**
 * Plugin Name: Show always Debug Objects
 * Plugin URI:  https://github.com/bueltge/debug-objects/
 * Description: Display the debug hints also for not logged in users.
 */

! defined( 'ABSPATH' ) and exit;
 
add_action( 'debug_objects_view', '__return_true' )

Clone this wiki locally