I don’t believe there is a way to do this via a plugin (at least in a way that will get around 500 type errors, which is why I originally looked into this), but the section of code where the hook callback gets called is in wp-includes/plugin.php in the do_action function:
https://github.com/WordPress/WordPress/blob/master/wp-includes/plugin.php#L453
This got updated in WP 4.7 a bit, but if you edit around this line temporarily, you can do some debugging. Change:
$wp_filter[ $tag ]->do_action( $args );
To
if($tag == "init") echo "Calling " . $args[0] . ".<br />";
$wp_filter[ $tag ]->do_action( $args );
And this should echo some info to help you know what callbacks are being called.
Related Posts:
- Difference between after_setup_theme and init action hooks?
- Use wp init hook to call other hooks?
- wp_redirect() not working on form submission with init hook
- What is the best filter where to use register_block_type?
- Plugins rewrite rules the right way
- PHP header() gives headers already sent
- How to debug wordpress hooked functions?
- Session management issues with WordPRess 404 Error page
- Debug a WP install: how to find which functions write post updates during a process (a woocommerce checkout in my case)
- Stylesheet is getting removed/deregistered automatically
- WP_mail() Issue. Duplicate emails if $_GET[‘A’] == email
- Function Hooked on Init Running Multiple Times
- Which hook should be used to add an action containing a redirect?
- WooCommerce: change display order of product short description and price [closed]
- Hook that fires when admin setting is saved
- What is the difference between update_post_meta and update_postmeta hooks?
- Is there a WordPress core & plugins update action hook?
- trigger save_post event programmatically
- is it possible to get the hook name in add_action?
- What hook is executed just after wp_query has been executed?
- How to properly test a method that is called by an action hook
- How can I do customizations on login, registration and password recovery forms?
- Custom form action hook
- How to send an automated user ‘inactivity’ email?
- How do I successfully create a hook for an email override?
- Admin Hook at the Login Page
- Which Hook? Hide attachments from specific post types in media library
- Cast string to number
- Custom action on login and “remember me”
- How to debug user_register hook
- How to prevent double execution of do_action statements
- When is the {$new_status}_{$post->post_type} transition hook fired?
- How to hook into Add New Member in BuddyPress
- Using wp_editor tinyMCE in metabox cause form alert on leaving page
- Get post or page id early
- Hook when new CPT published AND postmeta inserted
- Looking for a hook for post.php
- Need to check is_archive during init
- When WP_CLI runs WordPress from the command line, are hooks called?
- Query categories that have a description
- Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)
- Trying to run a compile command while saving post
- When are wp redirect methods safe to hook?
- WooCommerce single product page quantity description [closed]
- Action hook for custom tax edit
- wp cron job fires at every second or so, if callback is wrapped with DOING_CRON check it never fires at all
- wp_enqueue_script before wp_head
- Is it possible to add the_content filter upon login?
- I don’t understand how add_action and do_action work in tandem. The former executes the code already…what is do_action for?
- Insert HTML in post, below nav bar but above content?
- Convert Gravity Form Entry Date on Export
- Hook Adding content after title
- Fatal error: Call to a member function get_queried_object_id()
- “admin_enqueue_scripts” hook or $_GET[‘page’]?
- wp_logout hook never triggered
- add short description under price
- How to add content to suscriptor dashboard frontend?
- Add PHP code to header section from plugin
- How to change a WordPress term’s slug before saving
- dynamic add_action according to child pages (for homepage control)
- Remove action in a parent theme from the child theme
- Remove action within a class in a parent theme’s includes folder from the child theme
- WordPress media library allow uploading fake file
- Action hook save_post for newly created posts – $post object data is all empty
- add_filter to the_content from plugin function
- What hook should I use that will fire whenever I open a post for editing in the WP back-end?
- Hooking dynamic/variable named hook in all cases
- Can not using get_header() cause trouble (later on)?
- What hook to add at start of WordPress load
- Knowing if a post is sticky in the ‘save_post’ action. Where do I have to hook?
- Is there a author_update action?
- How to set Media Box form elements default value?
- How to get product information using hooks?
- Print additional fields in wp_new_user_notification_email_admin
- Can we change the hook firing sequence?
- Intercept loading of a certain page
- remove_action not working for a function
- Is there no concise way, a library maybe, to help with unhooking class functions and so on?
- Output Redirect Headers on Admin Dashboard Page
- What hook should I use to add post meta data with on update?
- Check when a setting has been changed
- Problem with call_user_func_array front end
- How to I prevent WordPress from switching external HTTP links to HTTPS?
- How to override get_avatar() function?
- What is the correct entry point for capturing coverage data
- Change user role if it’s orders count more than
- Using actions, hooks and filters in a non-WordPress page
- addaction hook cause redirection problem
- Hook into create_category
- Trouble adding data to options table
- Getting all post/page IDs related to a soon-to-be-deleted tag/cat
- How to hook into publish_posttype?
- Transform .wp-video to the native video player of the browser
- $GLOBALS & global doesn’t work [closed]
- How to use the password_reset hook to validate new password and display error
- Hooks not working on live server
- Callback API for getting response from fygaro payment gateway
- Removing script tags that are loaded by other script tag
- Does wp_login hook fire on user registration?
- Changing login url