options; $this->options['double_optin'] = $double_optin; $this->options['update_existing'] = $update_existing; $this->options['replace_interests'] = $replace_interests; $this->options['lists'] = [ $list_id ]; $data = $merge_fields; $data['EMAIL'] = $email_address; $this->subscribe($data, $form_id); // revert to original options $this->options = $orig_options; } /** * @return bool */ public function is_installed() { return class_exists('Ninja_Forms'); } /** * @since 3.0 * @return array */ public function get_ui_elements() { return []; } /** * @param int $form_id * @return string */ public function get_object_link($form_id) { return 'Ninja Forms'; } }