Learndash_Admin_Builder::get_label_for_post_type

Learndash_Admin_Builder::get_label_for_post_type( string $post_type = '',  boolean $singular = true )

Utility function to get the label for Post Type.


Description #


Parameters #

$post_type

(string) (Optional) Post Type slug.

Default value: ''

$singular

(boolean) (Optional) True if singular label needed. False for plural.

Default value: true


Return #

(string.)


Source #

File: includes/admin/class-learndash-admin-builder.php


Changelog #

Changelog
Version Description
2.5.0 Introduced.