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_Integrations::get_integrated_forms_selectlist()
Returns array of options for a select field to select an integrated form.
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
Return Return
(array)
Source Source
File: classes/Integrations.php
public static function get_integrated_forms_selectlist() { $enabled_form_integrations = PUM_Integrations::get_enabled_form_integrations(); $options = []; foreach ( $enabled_form_integrations as $integration ) { switch ( $integration->key ) { default: $group_options = [ $integration->key . '_any' => sprintf( __( 'Any %s Form', 'popup-maker' ), $integration->label() ), ]; foreach ( $integration->get_form_selectlist() as $formId => $formLabel ) { // ex. ninjaforms_1, contactform7_55 $group_options[ $integration->key . '_' . $formId ] = $formLabel; } $options[ $integration->label() ] = $group_options; break; } } return $options; }
Expand full source code Collapse full source code View on Trac