mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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' ) {
|
||||
|
||||
Reference in New Issue
Block a user