Check out the WordPress Codex Krishan: do_action
I quote from that codex page
Execute functions hooked on a specific action hook.
This function invokes all functions attached to action hook $tag. It is possible to create new action hooks by simply calling this function, specifying the name of the new hook using the $tag parameter. You can pass extra arguments to the hooks, much like you can with apply_filters(). This function works similar to apply_filters() with the exception that nothing is returned and only the functions or methods are called.
You can hook a function to an action hook using add_action().
Related Posts:
- Difference between add_filter and apply_filters
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Notice: wp_get_http is deprecated since version 4.4.0!
- How to properly secure my WordPress installation?
- How to add usermeta to “Notice of Email Change” email message
- Is it necessary to translate WordPress key terms when localizing a plugin
- Extending WP’s upload/insert media functionality
- Strip HTML comments from plugins in header/footer
- How to get the permalink of a page when loading my plugin
- How to expire all wordpress user passwords instantly?
- locate_template with multiple categories?
- WordPress and WebRTC?
- Hardcode a Plugin into theme
- How create a role with admin capability less 1 or 2?
- Ajax gives 400 error
- Change words on ‘Log in’ and ‘Register’ buttons on Woocommerce
- Override WP Class Private Function
- How to Include a Loop Template File in a Plugin
- How to show Categories and Sub-categories using WooCommerce
- React JSX in WordPress Plugin Development
- How to add a default value to get_option if it’s used as a variable?
- My plugin wants to update another plugin
- Creating a nav menu
- Executing Javascript when a New Post is Published
- Use gutenberg block editor on plugin page (outside of a post)
- Using SVN to upload plugin created with gutenberg blocks
- Custom WPBakery elements not displaying in WP admin
- Set featured image using javascript in post editor
- Display encrypted content on my website
- How do I hide posts across all loops based on the value of a custom field?
- Plugin developer automated documentation
- Ajax with plugins returns 0
- All sites themes functions.php have been changed
- Loading a purchased jquery plugin in a wordpress theme
- Media Upload Tab reload and change $_GET
- Fullscreen Video/GIF Intro
- How to define constant before plugin [duplicate]
- Multisite for Multisite?
- breadcrumb need to show all pages and subpages
- Widget’s container?
- Is it possible not to load theme on a specific page in wordpress?
- How to change shortcode’s default theme?
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- WordPress Widget Not Saving Instance
- wp_insert_post() inside save_post(): force WP to not update global post object?
- WordPress truncate posts question (plugin related)
- Microsoft Word documents to WordPress pages adding paragraph tags
- Different registration form for different roles
- My plugin does not install correctly if a previous version is still installed
- Why aren’t my Follow Me links working?
- WordPress ping spam issue with Ping services?
- 404 errors when updating options in admin dashboard
- cannot find cforms action handler page
- Hook from plugin doesn’t fire up from external PHP script
- Custom User Registration Form not showing
- Drag and drop widget always inserts image
- Slideout submenu in mobile
- How to solve conflict with scripts?
- What database state changes happen after a post is manually “updated” with no changes?
- Display posts by alphabetical order
- wp_insert_post not inserting post from XML
- Admin Custom Plugin List Files in admin Table
- Overriding a function in a WordPress plugin
- Access “wp site health info” data from plugin
- Website always load twice on start
- How to update a database entry with a wordpress plugin?
- Change Woo Custom Endpoint Titles from a Plugin
- Is there a way to display multiple authors on a post?
- custom sidebar plugin issue
- White blank screen while adding or editing pages in wordpress
- Product catalogue in WordPress
- How to get bulk actions handler to display simple “Hello World”?
- Plugin debugging with errors in activation routine
- one admin for 2 wordpress websites
- Get input form data posted by users
- Number format in thousands on highcharts in wpdatatable plugin
- DB Sync Media Files extension [closed]
- Disqus comment system – change comments number before “load more” button
- What Are the Advantages of Using an mu-plugin
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- W3 Total Cache Can’t Really Detect Things
- how to create or rewrite files in wordpress plugin folder
- Determine if get_the_image has image on Get the image Plugin
- How to show author’s avatar in the post meta data with plugin `user-avatar`
- How to add different CSS for galleries
- How do I add php to all links automatically?
- Top Contributors Plugin with Custom Post Type
- WP-Minify 400 errors and open_basedir restriction in effect
- Plugin Links to page not working
- My WP site and password was hacked, what to do? [closed]
- plugin how to find code and edit it in a template file?
- how do I solve Installation failed: There has been a critical error on your website
- WooCommerce product prices not showing up correctly [closed]
- WordPress plugin header already sent
- Order custom post type by posts with most likes first
- WordPress website is redirecting on some different shopping page
- Pulsing circle before the post title (Breaking news flash)
- Adding fontAwesome to Primary Menu returns after saving the menu