WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 575 | |
| 576 | /** |
| 577 | * Filter the list of post meta keys to be revisioned. |
| 578 | * |
| 579 | * @since 6.4.0 |
| 580 | * |
| 581 | * @param array $keys An array of meta fields to be revisioned. |
| 582 | * @param string $post_type The post type being revisioned. |
| 583 | */ |
| 584 | return apply_filters( 'wp_post_revision_meta_keys', $wp_revisioned_meta_keys, $post_type ); |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * Check whether revisioned post meta fields have changed. |
| 589 | * |
| 590 | * @since 6.4.0 |
| 591 | * |
| 592 | * @param bool $post_has_changed Whether the post has changed. |
| 593 | * @param WP_Post $last_revision The last revision post object. |