af/form/editing/post_created
Triggered after a post has been created. Not triggered when a post is edited.
<?php
function form_post_created( $post, $form, $args ) {
// Do something with the created post.
// $post is a WP_Post object.
}
add_action( 'af/form/editing/post_created/key=FORM_KEY', 'form_post_created', 10, 3 );
Modifiers
af/form/editing/post_created
Applies to all forms.af/form/editing/post_created/key=FORM_KEY
Applies to forms with specific key.af/form/editing/post_created/id=FORM_ID
Applies to forms with specific post ID.