learndash_get_setting

learndash_get_setting( int|WP_Post $post,  string|null $setting = null )

Gets the LearnDash setting for a post.


Description #


Parameters #

$post

(int|WP_Post) (Required) The WP_Post object or Post ID.

$setting

(string|null) (Optional) The slug of the setting to get.

Default value: null


Return #

(string|void) The value for requested setting.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.