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
PUM_Abstract_Provider::render_fields( array $shortcode_atts )
Creates the inputs for each of the needed fields for the email provider
Description Description
TODO Determine how this should really work for visible custom fields.
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
Parameters Parameters
- $shortcode_atts
-
(Required) Array of shortcodee attrs.
Source Source
File: classes/Abstract/Provider.php
public function render_fields( $shortcode_atts ) { $fields = PUM_Admin_Helpers::flatten_fields_array( $this->shortcode_fields() ); foreach ( $fields as $key => $field ) { if ( ! $field['private'] && isset( $shortcode_atts[ $key ] ) ) { echo esc_html( '<input type="hidden" name="' . $key . '" value="' . $shortcode_atts[ $key ] . '" />' ); } } }
Expand full source code Collapse full source code View on Trac