Browse: Home / Classes / LDLMS_Post_Types /


LDLMS_Post_Types::get_post_type_key( string $post_type_slug = '' )

Utility function to return the post type key. This is to prevent hard-coding of the key throughout the code files.

Description #

Parameters #


(string) (Optional) Internal slug used to identify the post_type.

Default value: ''

Return #

(string) post type key if found.

Source #

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

Changelog #

Version Description
2.6.0 Introduced.