PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
src
<?php /** * Initializes blocks in WordPress. * * @package WooCommerce/Blocks */ namespace Automattic\WooCommerce\Blocks; defined( 'ABSPATH' ) || exit; /** * Library class. */ class Library { /** * Initialize block library features. */ public static function init() { add_action( 'init', array( __CLASS__, 'register_blocks' ) ); } /** * Register blocks, hooking up assets and render functions as needed. */ public static function register_blocks() { $blocks = [ 'FeaturedCategory', 'FeaturedProduct', 'HandpickedProducts', 'ProductBestSellers', 'ProductCategories', 'ProductCategory', 'ProductNew', 'ProductOnSale', 'ProductsByAttribute', 'ProductTopRated', 'ProductTag', ]; foreach ( $blocks as $class ) { $class = __NAMESPACE__ . '\\BlockTypes\\' . $class; $instance = new $class(); $instance->register_block_type(); } } }
[+]
..
[-] Library.php
[edit]
[-] Assets.php
[edit]
[+]
RestApi
[-] Package.php
[edit]
[+]
BlockTypes
[-] RestApi.php
[edit]