Browse: Home / Classes / LearnDash_Settings_Section_Registration_Fields /

LearnDash_Settings_Section_Registration_Fields::section_pre_update_option

LearnDash_Settings_Section_Registration_Fields::section_pre_update_option( array $current_values = '',  array $old_values = '',  string $option = '' )

Intercept the WP options save logic and ensure labels are not empty


Description #


Parameters #

$current_values

(array) (Optional) Array of section fields values.

Default value: ''

$old_values

(array) (Optional) Array of old values.

Default value: ''

$option

(string) (Optional) Section option key should match $this->setting_option_key.

Default value: ''


Source #

File: includes/settings/settings-sections/class-ld-settings-section-registration-fields.php


Changelog #

Changelog
Version Description
3.6.0 Introduced.