Here in this page its the list of all action and filter hooks, just click on one and it will tell you in which file you can find it, a partial view of where is declared, and below are the related hooks.
you can see a list of hooks and the functions attached to it using:
$hook_name="wp_head";
global $wp_filter;
var_dump( $wp_filter[$hook_name] );
i am using ‘wp_head’ as an example, but you can use a hook related to the event (you said location) and start digging, for known events you can just do a google search, the common ones will show, and you can use them as $hook_name
Related Posts:
- Is there a way to send HTML formatted emails with WordPress’ wp_mail() function?
- Why do some hooks not work inside class context?
- Hook after image is uploaded and image sizes generated
- Do WordPress Core Filenames Work as Hooks?
- How to call a REST endpoint when a post is published?
- __NAMESPACE__ with register_activation_hook
- Hook for URL Request
- How do I flush the rules after saving settings using the Settings API?
- Run javascript code after wp_login hook?
- Hook/notify when any option or setting is added or updated
- Is it possible to save/modify a post without calling the “save_post” action hook?
- Which hooks is this? add_action(‘wp’,
- Redirect logged in users if they are on a specific page
- admin_notices after register_uninstall / deactivate_hook
- Rest API Hook When Post Is Requested
- add_action on inherit post status
- Why does wp_enqueue_script ignore my ‘wp_head’ hook?
- How to add hook to the_title() and get_the_title()
- action lifecycle
- Redirect users on specific post category or category page
- Returning ACF custom field from publish_post
- How to modify an add_action() inside a loop of core function
- Add custom URLs to WordPress’s XML sitemap
- Hooking after get_header()
- What is the best filter where to use register_block_type?
- How to send data from a form created by a plugin to an external API?
- How to get all functions with priority ‘1’ attached to hook ‘wp_head’
- How get list all users who edited post?
- Stuck in redirect loop after using wp_login action
- Hooks for Links Box [duplicate]
- Why doesn’t wp_enqueue_script() work when including a JavaScript file with TEMPLATEPATH?
- Check if do_action(‘custom_action’) is hooked into?
- Hook after wp_enqueue_scripts
- Detect change to user_meta and retrieve old and new values
- wp_login Action hook with conditional tag
- Can I remove WooCommerce main content hook?
- How to alter the query using pre_get_posts hook and is_post_type_archive
- How to update WordPress core or themes and still have my child theme hooks work
- Proper indentation of code generated inside hooks
- Featured Image Action Hook
- Add parameter (time) to oembed
- How can I count post views of REST API calls and update them in an ACF field?
- Is it possible to change image urls by hooks?
- Implement Hooks Using Array
- What hook is used to display the admin_bar on the front end?
- Is there a JavaScript equivalent of get_post_field?
- Adding a hook to the default (page.php) template
- Add action hook into wp_localize_script
- Conditional for autosave or auto draft?
- Using delete_attachment to prevent an attachment not working
- How does do_action( ) works actually?
- Redirecting from login
- Giving the_excerpt in the place of the_content?
- Hook to init or call explicitly within functions.php
- How to add content to the end of a page with a hook?
- Woocommerce table is missing a heading–can I add it by use of a hook?
- WordPress’s “Text” Format
- Alternative to new_to_publish Hook for Custom Statuses
- run script on publish
- Calling add_action on a filter hook?
- Remove Header and Footer if user is not logged on
- hooks for automatic approve user registration according to data in custom fields
- How to render an element, that was saved as a template, using a hook?
- How to use embed_content hook?
- What is deprecated_argument_run meant to do exactly?
- How do I run an action after a featured image has been selected in the Gutenberg editor?
- How to run a function after wp() in the wp-blog-header.php file?
- WordPress cronjob get scheduled but function does not run
- How to add a HTML element in ADMIN edit post window?
- wp query add array by if condition
- call php file from form and use wp functions
- Gravity Forms | Form Object is NULL [closed]
- Change status of page after an event (Looking for best practice advice)
- wp_insert_post hook for a wordpress plugin
- Add action save post when create and publish
- Hooks for Start/End of Batch Plugin Updates in wordpress
- How to load another post if condition is true
- Struggling with plugin dev basics: add_action
- RTrouble passing arguments to action
- delete_user hook failed
- Which things should be called with `after_setup_theme`?
- Changing header logo href for the checkout page
- Prefixing widget_posts_args Hook
- Can’t get ID of post that relates to the comment
- Updating user meta data from external link, user not logged in
- Remove lines from RSS Feed
- Is there a hook that triggers when grant secondary user role in WordPress?
- How to create callback function which returns all posts with specific data?
- How can I insert custom html code inside a div dynamically?
- How WordPress understands what do with the (all) key in the $wp_filter array? [duplicate]
- WP-Automatic to run publish hooks
- How to work with hooks and Posts to posts plugin?
- When is get_currentuserinfo() needed?
- disable publish button until condition is not met
- Hide post completely and still reach it via cURL
- Problem in register activation hook and Copying folder
- Why does hook priority affects admin menu permission error?
- add_action failed to display function by a plugin
- theme.json is altering Group block HTML
- Not able to set userId and email at wp_set_current_user in Worpdress