Custom post type save_post action not firing

The “save_post” action is only called when we actually changed
something in the post page form. If we just press the update button,
without changing anything, the “save_post” action is not called.

This is important if we are editing a custom post type where we had
custom meta boxes. If we rely on the “save_post” action and only
change stuff on our custom meta boxes, nothing will happen.

The solution is to use the “pre_post_update” action hook, instead of
“save_post”

http://wordpress.org/support/topic/save_post-not-working-getting-called#post-2335557

Leave a Comment