Browse: Home / Functions /

learndash_update_setting

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

Updates the LearnDash setting for a post.


Description #


Parameters #

$post

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

$setting

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

$value

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

Changelog
Version Description
2.1.0 Introduced.