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


Top ↑

Return Return

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


Top ↑

Source Source

File: themes/ld30/includes/helpers.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.