Browse: Home / Functions /

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 #

(mixed) The value for requested setting.


Source #

File: includes/settings/settings-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.