BSF_License_Manager::bsf_get_product_info( int $product_id, string $key )

Get product info.


Description


Parameters

$product_id

(int) (Required) Product ID.

$key

(string) (Required) Key.


Source

File: admin/bsf-core/class-bsf-license-manager.php

		public function bsf_get_product_info( $product_id, $key ) {

			$brainstrom_products = get_option( 'brainstrom_products', array() );
			$brainstorm_plugins  = isset( $brainstrom_products['plugins'] ) ? $brainstrom_products['plugins'] : array();
			$brainstorm_themes   = isset( $brainstrom_products['themes'] ) ? $brainstrom_products['themes'] : array();

			$all_products = $brainstorm_plugins + $brainstorm_themes;

			if ( isset( $all_products[ $product_id ][ $key ] ) && ! empty( $all_products[ $product_id ][ $key ] ) ) {
				return $all_products[ $product_id ][ $key ];
			}
		}


User Contributed Notes

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