post_updated_messages
Filters the post updated messages.
Usage
add_filter( 'post_updated_messages', 'wp_kama_post_updated_messages_filter' ); /** * Function for `post_updated_messages` filter-hook. * * @param array[] $messages Post updated messages. For defaults see `$messages` declarations above. * * @return array[] */ function wp_kama_post_updated_messages_filter( $messages ){ // filter... return $messages; }
- $messages(array[])
- Post updated messages. For defaults see $messages declarations above.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-form-advanced.php
post_updated_messages
wp-admin/edit-form-advanced.php 219
$messages = apply_filters( 'post_updated_messages', $messages );