learndash_get_content_label

learndash_get_content_label( string $post_type = null,  array $args = null )

Gets a label for the content type by post type.


Description #

Universal function for simpler template logic and reusable templates


Parameters #

$post_type

(string) (Optional) The post type slug to check.

Default value: null

$args

(array) (Optional) An array of arguments used to get the content label.

Default value: null


Return #

(string) The label for the content type based on user settings


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.