[ 'email', 'webinar', 'other', 'recaptcha', 'social', 'sellings', 'integrations', 'storage', ], ] ); $values = array(); foreach ( $apis as $api ) { //email is seen as autoresponder $allow_tags = true; if ( $is_tag_action ) { $allow_tags = $api->has_tags(); } if ( $allow_tags && ! in_array( $api->get_key(), array( 'email', 'wordpress' ) ) ) { $values[ $api->get_key() ] = array( 'id' => $api->get_key(), 'label' => $api->get_title() ); } } return $values; } public static function get_id() { return 'autoresponder'; } public static function get_type() { return 'select'; } public static function is_ajax_field() { return true; } public static function get_validators() { return array( 'required' ); } }