get_var( "SELECT EXISTS( SELECT 1 FROM {$wpdb->prefix}wc_orders_meta WHERE meta_key = '_wcpay_transaction_fee' LIMIT 1) AS count;" ); } else { $result = $wpdb->get_var( "SELECT EXISTS( SELECT 1 FROM {$wpdb->postmeta} WHERE meta_key = '_wcpay_transaction_fee' LIMIT 1) AS count;" ); } if ( 1 !== intval( $result ) ) { return; } $note = new Note(); $note->set_title( sprintf( /* translators: %s: WooPayments */ __( 'Help us make improvements to %s', 'woocommerce-payments' ), 'WooPayments' ) ); $note->set_content( __( 'Share your feedback in this 2 minute survey about how we can make the process of accepting payments more useful for your store.', 'woocommerce-payments' ) ); $note->set_content_data( (object) [] ); $note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL ); $note->set_name( self::NOTE_NAME ); $note->set_source( 'woocommerce-payments' ); $note->add_action( self::NOTE_NAME, __( 'Share feedback', 'woocommerce-payments' ), self::NOTE_DOCUMENTATION_URL, 'unactioned', true ); return $note; } }