Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > woocommerce > src > > Blocks
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
AI | Directory | - | - | |
AIContent | Directory | - | - | |
Assets | Directory | - | - | |
BlockTypes | Directory | - | - | |
Domain | Directory | - | - | |
Images | Directory | - | - | |
Integrations | Directory | - | - | |
Patterns | Directory | - | - | |
Payments | Directory | - | - | |
Registry | Directory | - | - | |
Shipping | Directory | - | - | |
Templates | Directory | - | - | |
Utils | Directory | - | - | |
Assets.php | File | 2839 bytes | December 27 2023 00:45:02. | |
AssetsController.php | File | 19050 bytes | June 23 2025 19:46:28. | |
BlockPatterns.php | File | 8669 bytes | June 23 2025 19:46:28. | |
BlockTemplatesController.php | File | 22594 bytes | November 14 2024 01:17:00. | |
BlockTemplatesRegistry.php | File | 5499 bytes | June 23 2025 19:46:28. | |
BlockTypesController.php | File | 21711 bytes | June 30 2025 17:49:22. | |
InboxNotifications.php | File | 583 bytes | December 27 2023 00:45:02. | |
Installer.php | File | 4180 bytes | June 25 2024 21:17:40. | |
Library.php | File | 1086 bytes | December 27 2023 00:45:02. | |
Options.php | File | 336 bytes | December 27 2023 00:45:02. | |
Package.php | File | 2782 bytes | May 12 2025 21:07:28. | |
QueryFilters.php | File | 18117 bytes | May 12 2025 21:07:28. | |
TemplateOptions.php | File | 1235 bytes | May 12 2025 21:07:28. |
<?php declare( strict_types = 1 ); namespace Automattic\WooCommerce\Blocks; use Automattic\WooCommerce\Blocks\Options; /** * TemplateOptions class. * * @internal */ class TemplateOptions { /** * Initialization method. */ public function init() { add_action( 'after_switch_theme', array( $this, 'check_should_use_blockified_product_grid_templates' ), 10, 2 ); } /** * Checks the old and current themes and determines if the "wc_blocks_use_blockified_product_grid_block_as_template" * option need to be updated accordingly. * * @param string $old_name Old theme name. * @param \WP_Theme $old_theme Instance of the old theme. * @return void */ public function check_should_use_blockified_product_grid_templates( $old_name, $old_theme ) { if ( ! $old_theme->is_block_theme() && wp_is_block_theme() ) { $option_name = Options::WC_BLOCK_USE_BLOCKIFIED_PRODUCT_GRID_BLOCK_AS_TEMPLATE; // We previously stored "yes" or "no" values. This will convert them to true or false. $option_value = wc_string_to_bool( get_option( $option_name ) ); // We don't need to do anything if the option is already set to true. if ( ! $option_value ) { update_option( $option_name, true ); } } } }
SILENT KILLER Tool