Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_get_attachment_metadata

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
4974      /**
4975       * Filters the attachment meta data.
4976       *
4977       * @since 2.1.0
4978       *
4979       * @param array|bool $data    Array of meta data for the given attachment, or false
4980       *                            if the object does not exist.
4981       * @param int        $post_id Attachment ID.
4982       */
4983      return apply_filters( 'wp_get_attachment_metadata', $data, $post->ID );
4984 }
4985
4986 /**
4987  * Update metadata for an attachment.
4988  *
4989  * @since 2.1.0
4990  *
4991  * @param int   $post_id Attachment ID.
4992  * @param array $data    Attachment data.