VendorVerse requires WooCommerce to be active.
'; } } public function plugin_links( $links ) { $links[] = '' . __( 'Settings', 'vendorverse' ) . ''; $links[] = 'Hire Developer'; return $links; } public function page_fraud() { global $wpdb; $alerts = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}vv_fraud_alerts ORDER BY created_at DESC LIMIT 100" ); // Mark as resolved if ( isset( $_POST['vv_resolve_alert'], $_POST['vv_nonce'] ) && wp_verify_nonce( sanitize_text_field( $_POST['vv_nonce'] ), 'vv_resolve_alert' ) ) { $wpdb->update( "{$wpdb->prefix}vv_fraud_alerts", [ 'is_resolved' => 1 ], [ 'id' => (int) $_POST['alert_id'] ] ); echo '' . esc_html__( 'Alert resolved.', 'vendorverse' ) . '
| ID | Type | Severity | Details | Date | Action |
|---|---|---|---|---|---|
| ' . esc_html( $a->id ) . ' | '; echo '' . esc_html( $a->alert_type ) . ' | '; echo '' . esc_html( $a->severity ) . ' | '; echo '' . esc_html( $a->details ) . ' | '; echo '' . esc_html( $a->created_at ) . ' | '; echo ''; if ( ! $a->is_resolved ) { echo ''; } else { echo '✓ Resolved'; } echo ' |
| Name | Price/Mo | Max Products | Commission % | Featured | Priority |
|---|---|---|---|---|---|
| ' . esc_html( $p->name ) . ' | ' . wc_price( $p->price ) . ' | ' . esc_html( $p->max_products ) . ' | ' . esc_html( $p->commission_rate ) . '% | ' . ( $p->featured_listing ? '✓' : '–' ) . ' | ' . ( $p->priority_support ? '✓' : '–' ) . ' |