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

Function is Missing an Action Hook

Not exactly ‘solved’ — I still do not know why wp_update_post() did not hit the transition of {old status}to{new status}

For my situation I simply added the below function to a unique instance of the button above. Not ideal, but hey it works.

Related Posts:

  1. How to hook update_post_meta and delete_post_meta?
  2. What is the difference between update_post_meta and update_postmeta hooks?
  3. Detect type of post status transition
  4. Access post meta just after publishing
  5. WP Admin Bar frontend issue with dashicon deregister
  6. Update post meta using pending_to_publish hook
  7. get_post_metadata causing some meta data to fail
  8. Alternative to new_to_publish Hook for Custom Statuses
  9. Is there a before_save_post hook or something similar
  10. How to stop WordPress from updating the post meta
  11. Custom posts and get_post_meta in {$post_status}_{$post_type}
  12. Change status of page after an event (Looking for best practice advice)
  13. Post via wp-admin and via iOS app, same hooks and triggers involved?
  14. Transition_Post_Status hook not working properly
  15. Why does get_post() not return anything?
  16. Access post meta just after publishing
  17. Get new (not old) post inside transition_post_status hook
  18. How to Show Different Information to your authors/contributers
  19. Redirect back to origin page after using get_delete_post_link()
  20. Why does my function create extra empty files?
  21. Is there a way to send HTML formatted emails with WordPress’ wp_mail() function?
  22. How to get WordPress’ hooks/actions run sequence?
  23. Where can I find a list of WordPress hooks?
  24. Is there a save_post hook for custom post types?
  25. Where is the right place to register/enqueue scripts & styles
  26. How to know what functions are hooked to an action/filter?
  27. Are there any hooks that alter the 404 logic?
  28. Is there a hook that runs after a user logs in?
  29. Difference between do_action and add_action
  30. WP Cron Doesn’t Execute When Time Elapses
  31. WooCommerce: change display order of product short description and price [closed]
  32. Why do some hooks not work inside class context?
  33. Difference between after_setup_theme and init action hooks?
  34. get $post in init filter or action?
  35. Use wp init hook to call other hooks?
  36. How many times can I hook into the same action?
  37. How do I implement the WordPress Iris picker into my plugin on the front-end?
  38. How to intercept a 404 error
  39. Move excerpt meta box to above content editor
  40. Action hook for custom tax edit
  41. Trigger custom action when setting button pressed
  42. What is “all” in isset($wp_filter[‘all’])
  43. Whats worth using add_action when we can simply use add_filter?
  44. Is there a limit to hook priority?
  45. Please explain how these hooks work
  46. Add_action to wp_head via functions.php
  47. Hook after image is uploaded and image sizes generated
  48. Is there a hook before the user is authenticated?
  49. Hook that fires when admin setting is saved
  50. add_action(‘wp_ajax_[action name]’, myfunction) problem
  51. Using get_post_meta with new_to_publish
  52. Hook ‘wp_enqueue_scripts’ priority has no effect
  53. Hook on trash post
  54. Hook *after* user password change?
  55. Auto-retrieve YouTube Image for Thumbnail?
  56. Which hook if user profile information is updated?
  57. How to remove action hook done in a plugin from functions.php in my theme?
  58. Hooks for trashing, deleting, saving, restoring custom post type
  59. Is there a WordPress core & plugins update action hook?
  60. Hook into WordPress update?
  61. trigger save_post event programmatically
  62. Implementing advanced add_* function wrappers
  63. Are there any action like ‘init_frontend’
  64. Adding onload to body
  65. My add_action (wp_footer, ‘method’) is not calling?
  66. Do WordPress Core Filenames Work as Hooks?
  67. What is the earliest possible hook for safely using `is_front_page`?
  68. switch_to_blog(): Load textdomain
  69. How to call a REST endpoint when a post is published?
  70. __NAMESPACE__ with register_activation_hook
  71. Can I hook inside another hook?
  72. Adding function directly vs using hook in function.php
  73. Are hooks called synchronously?
  74. How to check if which hook triggered the call to a function?
  75. How can I send to multiple Contact Form 7 recipients based on form input? [closed]
  76. Hook into wp_head(); in a plugin
  77. Send data to 3rd party api with wp_remote_post on wp_login
  78. is it possible to get the hook name in add_action?
  79. Hook for URL Request
  80. How do I flush the rules after saving settings using the Settings API?
  81. Run javascript code after wp_login hook?
  82. Does anyone have a visual breakdown of core hooks and when they are fired?
  83. How to customize the WP admin default help contents
  84. What is the action hook for save media-form on gallery tab?
  85. What hook is executed just after wp_query has been executed?
  86. Hide gutenberg option blocks
  87. The ‘user_has_cap’ hook seems to take two page loads to trigger
  88. How and where can we request new WordPress hooks to be added?
  89. Disable block from editor based on post type
  90. WordPress Admin Tooltip hooks
  91. Difference between hooks Plugin_loaded and admin_int?
  92. Wp_update_post: Infinite loop even with remove_action solution, OOP
  93. Hook/notify when any option or setting is added or updated
  94. Is it possible to save/modify a post without calling the “save_post” action hook?
  95. Which hooks is this? add_action(‘wp’,
  96. Redirect logged in users if they are on a specific page
  97. Make W3 Total Cache “Empty All Caches” function purge varnish [closed]
  98. Use $query->set multiple times with pre_get_posts?
  99. admin_post hook not called
  100. Check if action hook exists before adding actions to it
Categories hooks Tags front-end, hooks, post-meta, post-status
Reversing the order of items in a category rss feed?
How to remove the automated code posted in functions.php?

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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 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