feat(Core): add optimize and complete code

This commit is contained in:
2026-05-17 20:05:15 +03:30
parent aa944bf339
commit 4e60b7efdd
25 changed files with 858 additions and 54 deletions

View File

@@ -144,6 +144,10 @@ class Sodino_Upsell_List_Table extends WP_List_Table {
public function process_bulk_action() {
if ('delete' === $this->current_action()) {
if (!current_user_can('manage_options')) {
return;
}
$upsell_ids = isset($_POST['upsell_ids']) ? array_map('intval', $_POST['upsell_ids']) : [];
if (!empty($upsell_ids) && check_admin_referer('bulk-' . $this->_args['plural'])) {
foreach ($upsell_ids as $id) {