LDLMS_Post_Types::get_post_types( string $post_type_section = 'all', string $return_type = 'array', string $quote_char = '' )
Get an array of all custom tables.
Description #
Parameters #
- $post_type_section
-
(string) (Optional) Which group of post_types to return. Default is all.
Default value: 'all'
- $return_type
-
(string) (Optional) Used to designate the returned value. String or array.
Default value: 'array'
- $quote_char
-
(string) (Optional) Wrap the return values in quote character. Only for return_type 'string'.
Default value: ''
Return #
(array|string) Post type slugs array or string. See $return_type
parameter.
Source #
Changelog #
Version | Description |
---|---|
3.2.3 | Added $return_type parameter. |
2.6.0 | Introduced. |