learndash_get_option

learndash_get_option( string $post_type,  string $setting = '' )

Gets the options for a particular post type and setting.


Description #


Parameters #

$post_type

(string) (Required) The Post type slug.

$setting

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

Default value: ''


Return #

(array|string) The options value for the given post type and setting.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.