update( $table, ['status' => 'approved', 'approved_at' => current_time('mysql')], ['id' => $action_id], ['%s', '%s'], ['%d'] ); $notice = __('The action has been approved. Start its execution in the relevant AI Webmaster Studio module.', 'ai-webmaster-studio'); } else { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Private moderation queue requires current state. $wpdb->update($table, ['status' => 'rejected'], ['id' => $action_id], ['%s'], ['%d']); $notice = __('The action has been rejected.', 'ai-webmaster-studio'); } } // This admin queue requires current state from the private actions table. // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $actions = $wpdb->get_results($wpdb->prepare("SELECT * FROM %i WHERE status = 'pending' ORDER BY id DESC LIMIT 100", $table)); ?>
| ID | |||||
|---|---|---|---|---|---|
| id); ?> | action_title); ?> | action_type); ?> | risk_level); ?> | action_payload); ?> |
|