fix: resolve container width issues, spa redirects, and appearance settings overwrite. feat: enhance order/sub details and newsletter layout
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user