Browse: Home / Functions /


learndash_update_setting( int|WP_Post $post,  string $setting,  mixed $value )

Updates the LearnDash setting for a post.

Description #

Parameters #


(int|WP_Post) (Required) The WP_Post object or Post ID.


(string) (Required) The slug of the setting to update.


(mixed) (Required) The new value of setting to be updated.

Return #

(boolean) Returns true if the update was successful, otherwise false.

Source #

File: includes/settings/settings-functions.php

Changelog #

Version Description
2.1.0 Introduced.