Docs: Document some more common names for dynamic hooks and standardise the phrasing used.

Fixes #53581

Built from https://develop.svn.wordpress.org/trunk@51837


git-svn-id: http://core.svn.wordpress.org/trunk@51444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn
2021-09-21 18:21:00 +00:00
parent 70f1109c9f
commit ae9eae8f64
15 changed files with 91 additions and 41 deletions

View File

@@ -191,7 +191,7 @@ function translate( $text, $domain = 'default' ) {
/**
* Filters text with its translation for a domain.
*
* The dynamic portion of the hook, `$domain`, refers to the text domain.
* The dynamic portion of the hook name, `$domain`, refers to the text domain.
*
* @since 5.5.0
*
@@ -259,7 +259,7 @@ function translate_with_gettext_context( $text, $context, $domain = 'default' )
/**
* Filters text with its translation based on context information for a domain.
*
* The dynamic portion of the hook, `$domain`, refers to the text domain.
* The dynamic portion of the hook name, `$domain`, refers to the text domain.
*
* @since 5.5.0
*
@@ -482,7 +482,7 @@ function _n( $single, $plural, $number, $domain = 'default' ) {
/**
* Filters the singular or plural form of a string for a domain.
*
* The dynamic portion of the hook, `$domain`, refers to the text domain.
* The dynamic portion of the hook name, `$domain`, refers to the text domain.
*
* @since 5.5.0
*
@@ -542,7 +542,7 @@ function _nx( $single, $plural, $number, $context, $domain = 'default' ) {
/**
* Filters the singular or plural form of a string with gettext context for a domain.
*
* The dynamic portion of the hook, `$domain`, refers to the text domain.
* The dynamic portion of the hook name, `$domain`, refers to the text domain.
*
* @since 5.5.0
*