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' );
	}

Changelog

Changelog
Version Description
1.29.14 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.