Docs: Add and correct examples of common names for various dynamic hooks.

See #53581


git-svn-id: https://develop.svn.wordpress.org/trunk@51327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
johnbillion
2021-07-03 21:41:02 +00:00
parent 35cf314f9a
commit 5383af8483
10 changed files with 71 additions and 6 deletions
+5
View File
@@ -574,6 +574,11 @@ function wp_revisions_to_keep( $post ) {
* The dynamic portion of the hook name, `$post->post_type`, refers to
* the post type slug.
*
* Possible hook names include:
*
* - `wp_post_revisions_to_keep`
* - `wp_page_revisions_to_keep`
*
* @since 5.8.0
*
* @param int $num Number of revisions to store.