Browse: Home / Classes / LDLMS_Post_Types /


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 #


(string) (Optional) Which group of post_types to return. Default is all.

Default value: 'all'


(string) (Optional) Used to designate the returned value. String or array.

Default value: 'array'


(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 #

File: includes/class-ldlms-post-types.php

Changelog #

Version Description
3.2.3 Added $return_type and $quote_char parameter.
2.6.0 Introduced.