芝麻web文件管理V1.00
编辑当前文件:/home/paymbalq/www/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractInnerBlock.php
$this->get_block_type_render_callback(), 'editor_style' => $this->get_block_type_editor_style(), 'style' => $this->get_block_type_style(), ]; if ( isset( $this->api_version ) ) { $block_settings['api_version'] = intval( $this->api_version ); } $metadata_path = $this->asset_api->get_block_metadata_path( $this->block_name, 'inner-blocks/' ); // Prefer to register with metadata if the path is set in the block's class. register_block_type_from_metadata( $metadata_path, $block_settings ); } /** * For lazy loaded inner blocks, we don't want to enqueue the script but rather leave it for webpack to do that. * * @see $this->register_block_type() * @param string $key Data to get, or default to everything. * @return array|string|null */ protected function get_block_type_script( $key = null ) { if ( $this->is_lazy_loaded ) { return null; } return parent::get_block_type_script( $key ); } /** * Get the frontend style handle for this block type. * * @return null */ protected function get_block_type_style() { return null; } }