2020-05-01 / 4984阅 / 悠然
Get a list of all registered post type objects.
Top ↑
(array|string)
(Optional)
An array of key => value arguments to match against the post type objects.
Default value: array()
(string)
(Optional)
The type of output to return. Accepts post type 'names' or 'objects'.
Default value: 'names'
(string)
(Optional)
The logical operation to perform. 'or' means>Default value: 'and'
(string[]|WP_Post_Type[]) An array of post type names or objects.