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 Description


Parameters Parameters

$post_type_section

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

Default value: 'all'

$return_type

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

Default value: 'array'

$quote_char

(Optional) Wrap the return values in quote character. Only for return_type 'string'.

Default value: ''


Top ↑

Return Return

(array) of post type slugs.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.