WordPress как на ладони
WordPress темы и плагины за 250 рублей wordpress jino
событие не описано

attachment_updated хук-событие . WP 4.4.0

Fires once an existing attachment has been updated.

Использование

add_action( 'attachment_updated', 'action_function_name_5940', 10, 3 );
function action_function_name_5940( $post_ID, $post_after, $post_before ){
	// action...
}
$post_ID(число)
Post ID.
$post_after(WP_Post)
Post object following the update.
$post_before(WP_Post)
Post object before the update.

Где используется хук

wp_insert_post() остальные хуки:

Код хука

Фрагмент из: wp-includes/post.php VER 4.9.6
...
			 *
			 * @param int $post_ID Attachment ID.
			 */
			do_action( 'edit_attachment', $post_ID );
			$post_after = get_post( $post_ID );

			/**
			 * Fires once an existing attachment has been updated.
			 *
			 * @since 4.4.0
			 *
			 * @param int     $post_ID      Post ID.
			 * @param WP_Post $post_after   Post object following the update.
			 * @param WP_Post $post_before  Post object before the update.
			 */
			do_action( 'attachment_updated', $post_ID, $post_after, $post_before );
		} else {

			/**
			 * Fires once an attachment has been added.
			 *
			 * @since 2.0.0
			 *
			 * @param int $post_ID Attachment ID.
			 */
			do_action( 'add_attachment', $post_ID );
		}

		return $post_ID;
	}

...