fix: resolve container width issues, spa redirects, and appearance settings overwrite. feat: enhance order/sub details and newsletter layout

This commit is contained in:
Dwindi Ramadhana
2026-02-05 00:09:40 +07:00
parent a0b5f8496d
commit 5f08c18ec7
77 changed files with 7027 additions and 4546 deletions

View File

@@ -781,4 +781,21 @@ class LicenseManager
$license_id
), ARRAY_A);
}
/**
* Get licenses by order ID
*
* @param int $order_id
* @return array
*/
public static function get_licenses_by_order($order_id)
{
global $wpdb;
$table = $wpdb->prefix . self::$table_name;
return $wpdb->get_results($wpdb->prepare(
"SELECT * FROM $table WHERE order_id = %d ORDER BY created_at ASC",
$order_id
), ARRAY_A);
}
}