BSF_Update_Manager::brainstorm_all_products()
Brainstorm All Products.
Description
Source
File: admin/bsf-core/class-bsf-update-manager.php
public function brainstorm_all_products() { $brainstrom_products = get_option( 'brainstrom_products', array() ); $brainstrom_products_plugins = isset( $brainstrom_products['plugins'] ) ? $brainstrom_products['plugins'] : array(); $brainstrom_products_themes = isset( $brainstrom_products['themes'] ) ? $brainstrom_products['themes'] : array(); $brainstrom_bundled_products = get_option( 'brainstrom_bundled_products', array() ); $bundled = array(); foreach ( $brainstrom_bundled_products as $parent => $children ) { foreach ( $children as $key => $product ) { $bundled[ $product->id ] = (array) $product; } } // array of all the products. $all_products = $brainstrom_products_plugins + $brainstrom_products_themes + $bundled; return $all_products; }
Expand full source code Collapse full source code View on Trac