Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Converting core modification to a plugin

I haven’t done this kind of a hook yet but I did find this page in the wordpress codex

https://codex.wordpress.org/Function_Reference/wpmu_welcome_user_notification

They do explain a bit their about how you can modify the content of the activation and notifcation emails

I will try to explain a bit here
In WordPress an Action is a type of hook. You get Action Hooks and Filter Hooks

Actions are triggered by specific events that happen in WordPress like when a post is published you can trigger a custom action. Linked to a function that handles what you need it to do. An idea here is say for instance you would like to update a third party database when a specific post is updated you could link that to an action. Actions are hooks to WordPress using add_action()

Filters are functions defined for WordPress to run data through as it is displayed. So say for instance you would like to change some text on a post without affecting the database you would use a filter. That way when you change the filter you don’t have to edit the actual database values of the posts. Filters are hooked into wordpress using add_filter()

For more information I think have a read at this page
https://codex.wordpress.org/Plugin_API
which explains more in details about Hooks.

Related Posts:

  1. Objective Best Practices for Plugin Development? [closed]
  2. How do i best handle custom plugin page actions?
  3. How to create an API for my plugin?
  4. Is it ever okay to include inline CSS in plugins?
  5. Plugins in symlinked directories?
  6. In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
  7. Plugin Form Submission Best Practice
  8. Best way to abort plugin in case of insufficient PHP version?
  9. How can I configure Docker for developing and deploying a custom theme?
  10. What do you think about custom designed plugin/theme options UIs?
  11. No Error Log File, no debug info
  12. Where to put third party PHP library?
  13. Is the new WordPress 3.1 admin bar pluggable and how can I extend it?
  14. How to use PanelColorSettings in custom Gutenberg block?
  15. Getting a peer review for my new plugin?
  16. Optimize shortcode callbacks
  17. How to integrate a PHP webmail script into the backend of WordPress?
  18. Using filters and actions for plugin API?
  19. Is There A Hook To Process The Content Of The Text Widget?
  20. How to Change the Entire WordPress Admin panel Look and Feel?
  21. How to log plugin errors to plugin error_log file
  22. Which to use to execute code during the saving of a plugin settings page?
  23. Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
  24. Using Primary Color in Plugin Block
  25. When is it appropriate to put functions on page template vs. functions.php?
  26. Custom theme sufficient or custom plugin neccessary for this feature set?
  27. When to check if a function exists
  28. How to create custom home page via plugin?
  29. Adding callback function for wp_ajax_ has no effect
  30. Sessions not creating correctly in custom function
  31. Featured Image not showing in admin
  32. How to use wp_set_password in a plugin?
  33. How Can I setup WP CLI on Windows development machine running AMPPS?
  34. WP_LOCALIZE_SCRIPT doesn’t work
  35. Nuance in adding CPT and TAX to a submenu
  36. Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
  37. Delete a specific item menu when I deactivate my plugin
  38. Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
  39. Get the password key when using the wp_new_user_notification_email filter
  40. Order properties should not be accessed directly
  41. How to deal with equal & similar arguments for a function?
  42. Executing a function upon webhook calling wordpress
  43. Customizer: widget-synced triggers twice
  44. WordPress not working on localhost
  45. Adding functions to hooks from within a class
  46. how to use hook deleted_user into custom function to delete user from custom table
  47. Disable The Events Calendar plugin from loading its scripts
  48. Where to store the name of a custom table?
  49. Applying OO patterns and principles to plugin development
  50. WordPress is automatically linking plain text email addresses
  51. Is Using WordPress Supplied WYSIWYG Advisable?
  52. ServerSideRender and Media Object: attributes passing image data object to php renderer even though it’s not set
  53. Is it possible to change a term slug before being saved to the database?
  54. Maximum lifetime for nonce
  55. Clearing caches on plugin uninstall
  56. How to use a hook to override an update_post_meta call in a plugin?
  57. Add code inside specific wordpress standard function
  58. Custom Taxonomy to dropdown box on adminside wordpress
  59. Create a free scripts and styles template within a plugin
  60. How to modify the comments to be displayed in a post?
  61. How can I turn a custom wordpress page into a product page?
  62. How can we display product price $104 on the cart while the credit card payment method is checked?
  63. Incorporate small angular feature in my wordpress site
  64. How to Bind one post object Type with other postobject Type in Advanced Custom field [closed]
  65. Search: how to extend the existing search to include a custom table
  66. Is there documentation reference for forms in menu and setting pages?
  67. Enqueue script globally
  68. How to modify files inside wp-includes directory in wordpress
  69. How should I go about registering JavaScript that isn’t a file? [duplicate]
  70. Custom entity search and display
  71. How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
  72. Plugin: database creation
  73. Loading Modernizr (or other JavaScript libraries) for use in a plugin
  74. Show message from backend
  75. Why in this archive page that call query_posts() function show only the last 10 posts?
  76. Create Widget or Enable Shortcodes in Sidebar
  77. Logout after clicking URL link results in “headers already sent” error
  78. how to save wp_editor html content in options table
  79. How to use a WP_Customize_Control outside of the Customizer?
  80. How to replace settings in WordPress plugin from a theme
  81. How to remove/replace current page template?
  82. Setting a post’s category
  83. Extract Information from post content (using regex?)
  84. How to determine which capability to use?
  85. Serial Number from custom table not appear in woocommerce_email_before_order_table action
  86. Customise Grouped Product display in Woocommerce with custom column
  87. Custom Endpoint – Does it possible to use PUT method with WP API Rest?
  88. Why won’t this submenu page show? – My First WordPress Plugin
  89. How to create a custom post-new.php page for plugin , no wp menu
  90. Want to know how to reveal a WordPress theme, considering the theme name is hidden?
  91. Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
  92. Custom plugin not appearing
  93. Extend WP_List_Table class – Edit wp_usermeta – WPPB.me Boilerplate – Action error
  94. Is there any other ways to replicating changes on live from staging without pushing from git
  95. Can I log the searches that are returning 404 in the DB?
  96. Developing an IP lookup function using an API
  97. Custom fields in the billing address section woocommerce
  98. Add File field in WooCommerce Box office plugin
  99. Sticky bar with filter button and product count
  100. Custom Gutenberg Block ‘Stylized List’ – Incorrect Rendering and Looping of List Items
Categories plugin-development Tags customization, plugin-development, wp-signup
How to display the content only to the allowed IP address [closed]
How to retrieve certain number of images from a wordpress post?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress