PHP code example of aaemnnosttv / dev-debug
1. Go to this page and download the library: Download aaemnnosttv/dev-debug library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aaemnnosttv / dev-debug example snippets
// some test in your plugin or theme's functions.php
add_action( 'wp_head', function() {
ddprint( get_queried_object() );
} );
sdt( $data, $label = 'optional' );
ddlog( $data, $label = 'optional' );
ddhook('the_content')
if ( file_exists( __DIR__ . '/dev-debug/dev-debug.php' ) )