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.


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.