Browse: Home / Functions /


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

Gets the options for a particular post type and setting.

Description #

Parameters #


(string) (Required) The Post type slug.


(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 #

Version Description
2.1.0 Introduced.