Skip to content

Instantly share code, notes, and snippets.

@synthetiv
synthetiv / wp-hook-command.php
Last active August 26, 2016 20:59 — forked from danielbachhuber/wp-hook-command.php
WP-CLI command to list callbacks registered to a given action or filter
<?php
if ( class_exists( 'WP_CLI' ) ) :
/**
* List callbacks registered to a given action or filter.
*
* <hook>
* : The key for the action or filter.
*
* [--format=<format>]