learndash_get_content_label( string $post_type = null, array $args = null )
Gets a label for the content type by post type.
Description Description
Universal function for simpler template logic and reusable templates
Parameters Parameters
- $post_type
-
(Optional) The post type slug to check.
Default value: null
- $args
-
(Optional) An array of arguments used to get the content label.
Default value: null
Return Return
(string) The label for the content type based on user settings
Source Source
File: themes/ld30/includes/helpers.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |