Browse: Home / Hooks /


apply_filters( "learndash_metabox_save_fields_{$this->settings_metabox_key}",  array $settings_field_updates,  string $settings_key,  string $settings_screen_id )

Filters settings meta box save fields.

Description #

The dynamic portion of the hook $this->settings_metabox_key refers to the settings key also used as option name while saving settings in options table.

Parameters #


(array) An array of setting fields data.


(string) Settings key used as option name while saving settings.


(string) Settings screen ID.

Source #

File: includes/settings/class-ld-settings-metaboxes.php

Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 * Example usage for learndash_metabox_save_fields_{$this->settings_metabox_key} filter.
	function( $settings_field_updates, $settings_key, $settings_screen_id ) {
		// May add any custom logic using $settings_field_updates, $settings_key, $settings_screen_id.

		// Always return $settings_field_updates.
		return $settings_field_updates;