learndash_get_setting( int|WP_Post $post, string|null $setting = null )
Gets the LearnDash setting for a post.
Description Description
Parameters Parameters
- $post
-
(Required) The
WP_Post
object or Post ID. - $setting
-
(Optional) The slug of the setting to get.
Default value: null
Return Return
(string|void) The value for requested setting.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |