Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_post_revision_meta_keys

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
583
584      /**
585       * Filter the list of post meta keys to be revisioned.
586       *
587       * @since 6.4.0
588       *
589       * @param array  $keys      An array of meta fields to be revisioned.
590       * @param string $post_type The post type being revisioned.
591       */
592      return apply_filters( 'wp_post_revision_meta_keys', $wp_revisioned_meta_keys, $post_type );
593 }
594
595 /**
596  * Check whether revisioned post meta fields have changed.
597  *
598  * @since 6.4.0
599  *
600  * @param bool    $post_has_changed Whether the post has changed.
601  * @param WP_Post $last_revision    The last revision post object.