Docs: Apply documentation standards to the new get_available_languages
filter.
See #38788. git-svn-id: https://develop.svn.wordpress.org/trunk@39244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8bb2e8e9f7
commit
6e19fe7f5c
@ -948,7 +948,7 @@ function translate_user_role( $name ) {
|
||||
* The default directory is WP_LANG_DIR.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 4.7.0 The results are now filterable with the get_available_languages filter.
|
||||
* @since 4.7.0 The results are now filterable with the {@see 'get_available_languages'} filter.
|
||||
*
|
||||
* @param string $dir A directory to search for language files.
|
||||
* Default WP_LANG_DIR.
|
||||
@ -969,12 +969,12 @@ function get_available_languages( $dir = null ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the list of available language codes
|
||||
* Filters the list of available language codes.
|
||||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param array $languages An array of available language codes.
|
||||
* @param string $dir The directory where the language files were found.
|
||||
* @param array $languages An array of available language codes.
|
||||
* @param string $dir The directory where the language files were found.
|
||||
*/
|
||||
return apply_filters( 'get_available_languages', $languages, $dir );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user