Docs: Clarify that get_post_types()
accepts 'not'
as its $operator
parameter.
Props barryceelen. Fixes #35225. git-svn-id: https://develop.svn.wordpress.org/trunk@36091 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
27ccbb591c
commit
443419ae37
@ -864,7 +864,7 @@ function get_post_type_object( $post_type ) {
|
||||
* or 'objects'. Default 'names'.
|
||||
* @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. Accepts 'or' or 'and'. Default 'and'.
|
||||
* must match; 'not' means no elements may match. 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
Block a user