current_notice(); $send4_fields = $descriptor['fields']; $send4_mapped = array_filter( array( $form['mapping']['phone'], $form['mapping']['name'], $form['mapping']['email'] ) ); $send4_title = '' !== $descriptor['title'] ? $descriptor['title'] : __( '(untitled form)', 'send4' ); // A Gravity Forms phone field in its "standard" format accepts US numbers only, // so neither phone check runs on it. Said here, where they are switched on. $send4_us_only = false; foreach ( $send4_fields as $send4_field ) { if ( ! empty( $send4_field['us_only'] ) && (string) $send4_field['id'] === (string) $form['mapping']['phone'] ) { $send4_us_only = true; } } $send4_bar_title = __( 'Forms & Triggers', 'send4' ); $send4_bar_state = Send4_Admin::connection_state( $handshake ); $send4_bar_account = 'connected' === $send4_bar_state && isset( $handshake['client']['name'] ) ? (string) $handshake['client']['name'] : ''; ?>