Browse: Home / Functions /


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 #


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

Default value: null


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

Version Description
3.0.0 Introduced.