learndash_convert_settings_to_single

learndash_convert_settings_to_single( int $post_id,  array $settings = array(),  string $prefix = '' )

Saves the course, lesson, topic, and quiz settings meta to separate post meta.


Description #

Normally Course, Lesson, Topic and Quiz settings are stored into a single post meta array. This function runs after after that save and will save the array elements into individual postmeta fields.


Parameters #

$post_id

(int) (Optional) Course ID. Default 0.

$settings

(array) (Optional) An array of settings to be stored.

Default value: array()

$prefix

(string) (Optional) The post meta prefix.

Default value: ''


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.4.3 Introduced.