Menu

af/form/editing/post_updated

Triggered after a post has been edited. Not triggered when a post is created.

<?php

function form_post_updated( $post, $form, $args ) {
    // Do something with the edited post.
    // $post is a WP_Post object.
}
add_action( 'af/form/editing/post_updated/key=FORM_KEY', 'form_post_updated', 10, 3 );

Modifiers

  • af/form/editing/post_updated Applies to all forms.
  • af/form/editing/post_updated/key=FORM_KEY Applies to forms with specific key.
  • af/form/editing/post_updated/id=FORM_ID Applies to forms with specific post ID.