learndash_update_setting( int|WP_Post $post, string $setting, string $value )
Updates the LearnDash setting for a post.
Description Description
Parameters Parameters
- $post
-
(Required) The
WP_Post
object or Post ID. - $setting
-
(Required) The slug of the setting to update.
- $value
-
(Required) The new value of setting to be updated.
Return Return
(boolean) Returns true if the update was successfull otherwise false.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |