Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Autonami_Helpers::get_list_dropdown( $add_any = true )
get_list_dropdown
Return Return
(void)
Source Source
File: src/integrations/autonami/helpers/autonami-helpers.php
public function get_list_dropdown( $add_any = true ) { $list_options = array(); if ( $add_any ) { $list_options[] = array( 'value' => -1, 'text' => __( 'Any list', 'uncanny-automator' ), ); } $list_options = array_merge( $list_options, $this->get_lists() ); $dropdown = array( 'input_type' => 'select', 'option_code' => 'LIST', /* translators: HTTP request method */ 'label' => esc_attr__( 'List', 'uncanny-automator' ), 'required' => true, 'supports_custom_value' => false, 'options' => $list_options, ); return $dropdown; }
Expand full source code Collapse full source code View on Github