LDLMS_Post_Types::get_post_type_key

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 #

$post_type_slug

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

Changelog
Version Description
2.6.0 Introduced.