learndash_get_option( string $post_type, string $setting = '' )
Gets the options for a particular post type and setting.
Description Description
Parameters Parameters
- $post_type
-
(Required) The Post type slug.
- $setting
-
(Optional) The slug of the setting to get.
Default value: ''
Return Return
(array|string) The options value for the given post type and setting.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |