Browse: Home / Classes / LearnDash_Settings_Metabox /

LearnDash_Settings_Metabox::init

LearnDash_Settings_Metabox::init( WP_Post $post = null,  bool $force = false )

Initialize the Metabox instance.


Description #


Parameters #

$post

(WP_Post) (Optional) The WP_Post object to initialize the instance.

Default value: null

$force

(bool) (Optional) True to force the initialization. This will load values and settings again.

Default value: false


Return #

(false|void) False if the post is not valid, otherwise void.


Source #

File: includes/settings/class-ld-settings-metaboxes.php