learndash_settings_save_values

apply_filters( 'learndash_settings_save_values',  array $settings_values,  string $settings_section_key )

Filters LearnDash settings save values.


Description #


Parameters #

$settings_values

(array) An array of setting save values.

$settings_section_key

(string) Used within the Settings API to uniquely identify this section.


Source #

File: includes/settings/settings-metaboxes/class-ld-settings-metabox-course-access-settings.php


Examples #

 <?php
/**
 * Example usage for learndash_settings_save_values filter.
 */
add_filter(
	'learndash_settings_save_values',
	function( $settings_values, $settings_section_key ) {
		// May add any custom logic using $settings_values, $settings_section_key.

		// Always return $settings_values.
		return $settings_values;
	},
	10,
	2
);