Menu
Close menu

af/form/editing/user_updated

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

<?php

function form_user_updated( $user, $form, $args ) {
    // Do something with the updated user.
    // $user is a WP_User object.
}
add_action( 'af/form/editing/user_updated/key=FORM_KEY', 'form_user_updated', 10, 3 );

Modifiers

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