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

Plugin with action ‘save_post’ needs to press publish twice on order to publish

Plugin with action ‘save_post’ needs to press publish twice on order to publish

Related Posts:

  1. A Post is saved twice or more during add_action(save_post)
  2. Bug: Post needs to be updated twice when adding action for save_post hook
  3. Saving post meta
  4. Difference Between Filter and Action Hooks?
  5. Post meta vs separate database tables
  6. How to create an API for my plugin?
  7. How to override existing plugin action with new action
  8. Which hook should be used to add an action containing a redirect?
  9. WordPress Update Plugin Hook/Action? Since 3.9
  10. Which action for triggering cron “wp”or “init”?
  11. add_action with a class method is causing fatal errors
  12. How do you use the plugin boilerplate loader class to hook actions and filters?
  13. add_filter OO with parameters
  14. How do I print a notice only on certain admin pages?
  15. Do I need to call do_action in my plugin?
  16. How Do I Load My Action Earlier Enough?
  17. Which to use to execute code during the saving of a plugin settings page?
  18. Does WP fire delete_post when trashed posts are automatically deleted?
  19. What’s the earliest point I can get the queried object ID?
  20. How do I Make a Theme “plugin-ready”?
  21. Save metabox with multiple checkbox array
  22. Actions or filters fired when data is saved in a custom table
  23. In a plugin, why is add_action(‘init’) not executed before the plugin is activated?
  24. How to enable users to down-vote in this simple voting counter (that uses the post meta)?
  25. What’s the difference between hooks, filters and actions? [duplicate]
  26. How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
  27. What action is called when drafts are saved?
  28. Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types
  29. Is it possible to create an action hook using do_action() within add_action()?
  30. How can I hook into existing WordPress Bulk actions?
  31. When is it too late to call the action wp_enqueue_scripts?
  32. Odd behaviour with submenu link creation
  33. What is the Difference between directly call a function and call a function using add_action?
  34. How to add custom content under plugin row in WordPress admin plugin list?
  35. Define a function outside a class and call the function using action or filter hook
  36. How can I free up the memory used by update_post_meta?
  37. Create a plugin to change the action to which a function is hooked
  38. Get updated post meta on save_post action?
  39. Is there a way to list tags order by post_meta field
  40. update_post_meta() whenever custom post type is updated
  41. Modifying values with add_action to be sent to db
  42. Woocommerce – Hide a Column in Cart Table
  43. save_post hook not triggered in WP v3.6.1
  44. How to redirect to action on custom page within admin section
  45. Support auto-save and revisions for custom fields
  46. Plugin development: get_post_meta is not working [closed]
  47. Ordering posts by metadata
  48. admin_notices not displaying in plugin
  49. Hook to get image filename when it is uploaded
  50. How to run an add_action hook for specific page
  51. Which action is triggered when a theme was modified?
  52. wp_transition_post_status does not change the status of the post
  53. Act on user meta updated, but only once
  54. Getting admin notices working for plugin errors
  55. Which are the hooks run before/after when a category’s deletion?
  56. Should action callbacks start with a verb?
  57. Execute Hook on the footer or header after activating a plugin
  58. How to check if Woocommerce Order number equals to post ID?
  59. Set default Custom Post Meta Value
  60. An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
  61. Namespaced action and filter tags
  62. Issue plugin commands in admin settings page
  63. My plugin class doesn’t work! [closed]
  64. using new WP_Query in save_post function alters $post
  65. update post meta for checkbox in the admin when inserted in the front-end
  66. 403 Error when text is pasted in Custom Metabox Textarea
  67. add_action not calling back to function
  68. Tried in different ways but sidebar not working?
  69. conditionally load javascript & CSS for do_action() calls from plugin
  70. Saving value of a selection option in comment form as comment meta
  71. Add a Save Button to Custom Meta Box [duplicate]
  72. Strange issue saving custom field data for a WooCommerce order
  73. Adding rewrite rule dynamically
  74. How to hook a custom user function to a wordpress core ajax action?
  75. Prefixing plugin hooks (actions/filters) with a wrapper class or functions
  76. Unable to change footer using wp_footer action hook
  77. wp_set_object_terms not updating database without a die()
  78. Doubts about the use of metadata and how this can affect performance on WordPress
  79. update_post_meta not working in a loop
  80. Run Shortcode of post’s custom field in functions.php / Plugin
  81. How to filter content for specific content variable
  82. Get draggable widgets on Edit Post page
  83. load_plugin_textdomain doestn’t work with add_action plugins_loaded
  84. Show error message after exception handled
  85. I have 2 plugins using the same wp_login action hook and one is not working
  86. Valid filenames for add_action’s first parameter
  87. WordPress class, using add_action to call member function does not work
  88. Where do I put my add_action(… and add_filter(… and do I need to remove them?
  89. How dynamic action login_form_{action} is working
  90. What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
  91. How to get all queries’s results after they have executed?
  92. Checked() function on a multidimensional array
  93. Delete data from database using row action
  94. When does save_post hook fire on post save/update
  95. A question about add_action()
  96. Hook add_attachment error
  97. Call to undefined function is_home() or any conditional tags
  98. WP nonce field checkbox prints checked=’checked’ outside input field
  99. WordPress publish_post hook not getting featured image and meta on first publish, but works on updating title
  100. Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
Categories plugin-development Tags actions, plugin-development, post-meta, save-post
Insert woocommerce products programmatically with featured image and gallery
Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?

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