learndash_update_setting

learndash_update_setting( int|WP_Post $post,  string $setting,  string $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

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


Return #

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


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.