Skip to content

Instantly share code, notes, and snippets.

@allysonsouza
Last active December 1, 2020 21:16
Show Gist options
  • Save allysonsouza/0baf6680538b8248a9a1 to your computer and use it in GitHub Desktop.
Save allysonsouza/0baf6680538b8248a9a1 to your computer and use it in GitHub Desktop.
See functions hooked to a specific WordPress hook
<?php
$hook_name = 'your-hook-name';
global $wp_filter;
error_log( print_r( $wp_filter[$hook_name] , true ) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment