From 443419ae37ed9ccade45589f732fa50783926a3a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 26 Dec 2015 00:37:14 +0000 Subject: [PATCH] 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 --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 59506f8320..0ecf9a1ad7 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -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' ) {