bsf_get_license_expires( string $product_id )
Get the stored license expiry date for a product.
Description
Parameters
- $product_id
-
(string) (Required) Product ID.
Return
(string) Date string (Y-m-d H:i:s), 'lifetime', or empty string when not set.
Source
File: admin/bsf-core/includes/helpers.php
function bsf_get_license_expires( $product_id ) {
if ( ! class_exists( 'BSF_License_Manager' ) ) {
return '';
}
return (string) BSF_License_Manager::instance()->bsf_get_product_info( $product_id, 'expires' );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.29.14 | Introduced. |