Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_attachment

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
4606      } else {
4607           if ( $update ) {
4608                /**
4609                 * Fires once an existing attachment has been updated.
4610                 *
4611                 * @since 2.0.0
4612                 *
4613                 * @param int $post_id Attachment ID.
4614                 */
4615                do_action( 'edit_attachment', $post_id );
4616
4617                $post_after = get_post( $post_id );
4618
4619                /**
4620                 * Fires once an existing attachment has been updated.
4621                 *
4622                 * @since 4.4.0
4623                 *
4624                 * @param int     $post_id      Post ID.