Skip to content

Instantly share code, notes, and snippets.

@dparker1005
Last active January 18, 2021 05:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dparker1005/e885054ca79d5d45752a167d76b1ffbb to your computer and use it in GitHub Desktop.
Save dparker1005/e885054ca79d5d45752a167d76b1ffbb to your computer and use it in GitHub Desktop.
See all functions hookoing into login_redirect hook
<?php
// Copy from below here...
/*
* See all functions hookoing into login_redirect hook
*/
function my_hook_analizer_widget_function( $post, $callback_args ) {
print_filters_for( 'login_redirect' );
}
function print_filters_for( $hook = '' ) {
global $wp_filter;
if( empty( $hook ) || !isset( $wp_filter[$hook] ) )
return;
print '<pre>';
print_r( $wp_filter[$hook] );
print '</pre>';
}
/**
* Add widget to dashboard
*/
function my_hook_analizer_dashboard_widgets() {
wp_add_dashboard_widget( 'my_hook_analizer', 'Hook Analizer', 'my_hook_analizer_widget_function' );
}
// Set up widget widget.
add_action( 'wp_dashboard_setup', 'my_hook_analizer_dashboard_widgets' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment