Custom type values not available on wp_insert_post
-
Hello WordPress community,
I’m using the ‘wp_insert_post’ hook to perform some actions when user inserts a new post.
The post is a custom post type and it looks like, even though the general info related to the post is available in the global $post, the custom fields are still empty at that moment.
Is there a better hook to do this?
I need to perform the action when post is saved (new post, no updates) and be able to access all it’s related fields. Accessing the $post values could be a good choice as well, but I don’t need to filter them, just to take some decisions depending on data.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom type values not available on wp_insert_post’ is closed to new replies.