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
Popmake_Fields::sanitize_fields( array $values = array() )
Sanitize fields
Description Description
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
- $values
-
(Optional)
Default value: array()
Return Return
(array|mixed) $input Sanitized value
Source Source
File: includes/class-popmake-fields.php
public function sanitize_fields( $values = array() ) { $sanitized_values = array(); foreach ( $this->get_all_fields() as $section => $fields ) { foreach ( $fields as $field ) { $value = isset( $values[ $section ][ $field['id'] ] ) ? $values[ $section ][ $field['id'] ] : null; $value = $this->sanitize_field( $field, $value ); if ( ! is_null( $value ) ) { $sanitized_values[ $section ][ $field['id'] ] = $value; } } } return $sanitized_values; }
Expand full source code Collapse full source code View on Trac