Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

save-post

Prevent post from being published if custom fields not filled

August 4, 2022August 3, 2022 by Magenaut

I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen).

Categories Q&A, Wordpress Tags custom-field, custom-post-types, save-post Leave a comment

what is correct way to hook when update post

August 4, 2022August 3, 2022 by Magenaut

i try to hook when post is updated but all hook i try never executed except updated_post_meta

Categories Q&A, Wordpress Tags actions, hooks, php, save-post Leave a comment

Passing error/warning messages from a meta box to “admin_notices”

August 4, 2022August 3, 2022 by Magenaut

I have a simple meta box that updates the post custom fields (using update_post_meta()).

Categories Q&A, Wordpress Tags metabox, post-meta, save-post Leave a comment

Check for update vs new post on save_post action

August 4, 2022August 3, 2022 by Magenaut

Is it possible within the save_post action to determine whether it’s a new post being created or an existing post being update?

Categories Q&A, Wordpress Tags save-post, wp-update-post Leave a comment

Why does save_post action fire when creating a new post?

August 4, 2022August 3, 2022 by Magenaut

I’m surprised by the fact that my function that I’ve tacked onto the save_post action fires when I click the “New Post” link in the Admin Dashboard. Note – this is before I’ve pressed Save or Update, and it fires immediately, not after an elapsed time or auto-update.

Categories Q&A, Wordpress Tags actions, save-post Leave a comment

Add validation and error handling when saving custom fields?

August 4, 2022August 3, 2022 by Magenaut

I have a function that defines a custom field on a post type. Say the field is “subhead”.

Categories Q&A, Wordpress Tags custom-field, customization, errors, save-post Leave a comment

How to avoid infinite loop in save_post callback

August 4, 2022August 3, 2022 by Magenaut

I have been using this site alot for solving my problems, but this time I did not succeed in finding and answer for my problem.

Categories Q&A, Wordpress Tags save-post, wp-update-post Leave a comment

Is there an easy way to AJAX-ify saving of post?

August 4, 2022August 3, 2022 by Magenaut

We have a plugin that allows us to manage custom post types and we’d like to add AJAX functionality in saving, editing, and deleting posts. I couldn’t find similar problems in the internet so I’m wondering if this isn’t something easily doable?

Categories Q&A, Wordpress Tags ajax, custom-post-types, save-post Leave a comment

Using save_post to replace the post’s title

August 4, 2022August 3, 2022 by Magenaut

I am using custom posts, and in these, I don’t a need for the title.

Categories Q&A, Wordpress Tags custom-post-types, save-post Leave a comment

Minimum Word Count Before A Post Can Be Made Pending Review

August 4, 2022August 3, 2022 by Magenaut

I’m looking for a way to check that a post has a minimum word count before allowing it to be sent for review (added to the pending post status).

Categories Q&A, Wordpress Tags save-post Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress