Automattic\WooCommerce\Blocks
BlockPatterns::__construct()
Constructor for class
Метод класса: BlockPatterns{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$BlockPatterns = new BlockPatterns(); $BlockPatterns->__construct( $package );
- $package(Package) (обязательный)
- An instance of Package.
Код BlockPatterns::__construct() BlockPatterns:: construct WC 8.7.0
public function __construct( Package $package ) { $this->patterns_path = $package->get_path( 'patterns' ); add_action( 'init', array( $this, 'register_block_patterns' ) ); add_action( 'update_option_woo_ai_describe_store_description', array( $this, 'schedule_on_option_update' ), 10, 2 ); add_action( 'update_option_woo_ai_describe_store_description', array( $this, 'update_ai_connection_allowed_option' ), 10, 2 ); add_action( 'upgrader_process_complete', array( $this, 'schedule_on_plugin_update' ), 10, 2 ); add_action( 'woocommerce_update_patterns_content', array( $this, 'update_patterns_content' ) ); }