Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Simple WP wrapper plugin for Kint PHP debugger

Notifications You must be signed in to change notification settings

smithfield-studio/kint-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kint Debugger

Dump variables and traces in an organized and interactive display. Integrates seamlessly with Debug Bar.

Kint Debugger is a simple wrapper for Kint, a debugging tool to output information about variables and traces in a styled, collapsible format that makes understanding deep arrays and objects easier.

Basic Usage

d($var);
global $post;
d($post);
global $post;
$term_list = wp_get_post_terms($post->ID, 'my_taxonomy', ['fields' => 'all']);
d($term_list);
ddd($term_list); // debug + die()

Kint Debugger also provides some helper functions for dumping variables that are frequently needed.

  • dump_wp_query()
  • dump_wp()
  • dump_post()

<?php dump_post(); ?>

<?php add_action( 'wp_head', 'dump_post' ); ?>

Changelog

1.0.0

  • Fork updated kint-debugger with php 7.4 support
  • Rip out most of it, use composer to load latest version of Kint

About

Simple WP wrapper plugin for Kint PHP debugger

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages