Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Admin_Settings::parse_values( $settings )
Parse values for form rendering.
Description Description
Add additional data for license_key fields, split the measure fields etc.
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Parameters Parameters
- $settings
-
(Required)
Return Return
(mixed)
Source Source
File: classes/Admin/Settings.php
public static function parse_values( $settings ) { foreach ( $settings as $key => $value ) { $field = self::get_field( $key ); if ( $field ) { /** * Process fields with specific types. */ switch ( $field['type'] ) { case 'measure': break; case 'license_key': $license = get_option( $field['options']['is_valid_license_option'] ); $settings[ $key ] = array( 'key' => trim( $value ), 'status' => PUM_Licensing::get_status( $license, ! empty( $value ) ), 'messages' => PUM_Licensing::get_status_messages( $license, trim( $value ) ), 'expires' => PUM_Licensing::get_license_expiration( $license ), 'classes' => PUM_Licensing::get_status_classes( $license ), ); break; } /** * Process fields with specific ids. */ switch ( $field['id'] ) { /* case 'pum_license_status': $settings[ $key ] = Licensing::get_status(); break; */ } } } return $settings; }
Expand full source code Collapse full source code View on Trac