Last active
January 18, 2021 05:28
-
-
Save dparker1005/e885054ca79d5d45752a167d76b1ffbb to your computer and use it in GitHub Desktop.
See all functions hookoing into login_redirect hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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