It depends entirely on the specific plugin and the specific hook. It’s completely up to plugin developers what they want to allow other developers to do. They could allow developers to replace entire functions; to perform a custom action at the beginning, middle, or end of a function; to modify the result of a function; or none of the above. It’s impossible to give a generic answer.
The only way to know what you can do is to consult the developer documentation for the plugin, which will tell you what you can do. If that doesn’t exist, reading the actual code of the plugin and looking for hooks is all you can do.
Related Posts:
- Using filters and actions for plugin API?
- When is it appropriate to put functions on page template vs. functions.php?
- When to check if a function exists
- Dynamically Override Fancy Title
- What function to hook for changes made in status and visibility of a post
- Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
- WordPress after content Hook & external template part
- get_current_screen() return null
- Maximum lifetime for nonce
- How to use a hook to override an update_post_meta call in a plugin?
- Adding option to Gallery shortcode
- correct way to call javascript into hook function
- How to modify files inside wp-includes directory in wordpress
- Call to undefined function is_home() or any conditional tags
- How to replace settings in WordPress plugin from a theme
- Customise Grouped Product display in Woocommerce with custom column
- Add function to Dokan ajax class
- Function not working on any file other than the main plugin file
- Template file structure , wordpress hook for altering the template
- Dynamic banner for use on external sites
- get_term_by() returning null on plugin
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- Plugin Form Submission Best Practice
- Best way to abort plugin in case of insufficient PHP version?
- Where to put third party PHP library?
- Add a new tab to WordPress Plugin install Listing
- Optimize shortcode callbacks
- Changing Plugin Load Order
- How to integrate a PHP webmail script into the backend of WordPress?
- How should you hook a session_start() when authoring a plugin?
- Init action hook running late after PayPal’s return url?
- How to log plugin errors to plugin error_log file
- How Do I Load My Action Earlier Enough?
- Which to use to execute code during the saving of a plugin settings page?
- I can’t find where a hook is being defined in a plugin – Easy Digital Downloads
- Custom theme sufficient or custom plugin neccessary for this feature set?
- How do I handle multiple Submit buttons in plugin’s option page?
- Set default options for inserting media
- Adding callback function for wp_ajax_ has no effect
- Hook for post permalink update
- How to change post status from publish to draft using hook in wordpress?
- Plugin development: is adding empty index.php files necessary?
- Create a plugin to change the action to which a function is hooked
- comment_email hook doesn’t seem to work for comment editor field
- How do I change the initial quantity of a product in woocommerce?
- Where and how does WordPress store and use its plugin and hook information?
- Widget update function not saving values
- edit_{$taxonomy} | Hook
- override pluggable.php functions
- creating custom function to log actions in plugin
- Where to add hooks in a class
- How to customize a permalink (URL) structure?
- Custom Taxonomy to dropdown box on adminside wordpress
- How to use output buffering in WordPress hooked functions?
- Incorporate small angular feature in my wordpress site
- Modify custom field input data before creating a new post
- I have 2 plugins using the same wp_login action hook and one is not working
- Add a new confirmation page before saving
- WordPress class, using add_action to call member function does not work
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- What happens when two or more plugins use the same hook?
- flush rewrite rules after plugin update?
- Add child pages to submenu automatically
- Print Dashboard submenu name and filename
- After plugin activation hook
- hook filter after the_content on a specific page
- Plugin Development – Functions or Hooks?
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Add an Outside Wrapper to my Header and Make it Full Width
- Run command “composer install” when activating wordpress plugin
- Add a check box in Menu Settings
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Setting post_id for single.php based on URL without a redirect
- using admin functions on frontend
- Javascript Function Called Too Early in PHP Script
- Action / Hook when a new plugin is added
- Getting Post ID at “stylesheet” and “template” hooks
- Limit get_next_post to posts from the same author
- The function called on the wp head hook becomes null
- working code, not working – Plugin Dev
- Any way, hook to add content right before the “read more” link?
- Is there any way to get post meta from publish_post hook?
- How do I ensure I can loop through every enqueued script and CSS?
- external Integration with wordpress timeout error
- True email confirmation for registration (keeping unvalidated users from user table)
- foreach argument to get specific file types getting too many returns
- Making adding info to an overlay bio easy for average user?
- Implementing Select2 plugin into WordPress
- Unable to show a message after plugin activation
- Ajax not working to insert, query and result data
- Can I access WordPress API’s from within plugin scripts?
- How can I add recent posts to menu like mashable
- Why is ‘register_activation_hook’ undefined?
- Link to a admin submenu item using a custom link
- Change the search results header from plugin
- How to Implement SAM Broadcaster with WordPress? [closed]
- How do I add functionality to images?
- Apply function on all action hooks?
- Extend WP_List_Table class – Edit wp_usermeta – WPPB.me Boilerplate – Action error
- Developing an IP lookup function using an API