Add some missing information to the inline docs for `get_post_types()`.
* Improves the `@see` reference for `register_post_type()` to mention that it contains information about accepted arguments * Adds a description of the accepted values for the `$operator` parameter * Fixes a typo Fixes #29721. Built from https://develop.svn.wordpress.org/trunk@29752 git-svn-id: http://core.svn.wordpress.org/trunk@29524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75ff6ae302
commit
cca3890c84
|
@ -1161,15 +1161,15 @@ function get_post_type_object( $post_type ) {
|
|||
*
|
||||
* @global array $wp_post_types List of post types.
|
||||
*
|
||||
* @see register_post_type()
|
||||
* @see register_post_type() for accepted arguments.
|
||||
*
|
||||
* @param array|string $args Optional. An array of key => value arguments to match against
|
||||
* the post type objects. Default empty array.
|
||||
* @param string $output Optional. The type of output to return. Accepts post type 'names'
|
||||
* or 'objects'. Default 'names'.
|
||||
* @param string $operator Optaionl. The logical operation to perform. 'or' means only one
|
||||
* @param string $operator Optional. The logical operation to perform. 'or' means only one
|
||||
* element from the array needs to match; 'and' means all elements
|
||||
* must match. Default 'and'.
|
||||
* must match. Accepts 'or' or 'and'. Default 'and'.
|
||||
* @return array A list of post type names or objects.
|
||||
*/
|
||||
function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) {
|
||||
|
|
Loading…
Reference in New Issue