check_bsf_product_status( int $id )
Get status of product.
Description
Parameters
- $id
-
(int) (Required) product id.
Return
(bool)
Source
File: admin/bsf-core/plugin-installer/admin-functions.php
function check_bsf_product_status( $id ) { $brainstrom_products = ( get_option( 'brainstrom_products' ) ) ? get_option( 'brainstrom_products' ) : array(); $bsf_product_themes = ( isset( $brainstrom_products['themes'] ) ) ? $brainstrom_products['themes'] : array(); if ( empty( $brainstrom_products ) ) { return false; } $status = false; foreach ( $brainstrom_products as $products ) { foreach ( $products as $key => $product ) { if ( $product['id'] === $id ) { $status = ( isset( $product['status'] ) ) ? $product['status'] : ''; break; } } } return $status; }
Expand full source code Collapse full source code View on Trac