🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 ActivateTheme.php

📁 Path: ./wp-content/plugins/woocommerce/vendor/woocommerce/blueprint/src/Steps/ActivateTheme.php
📊 Size: 1.46 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

namespace Automattic\WooCommerce\Blueprint\Steps;

/**
 * Class ActivateTheme
 *
 * @package Automattic\WooCommerce\Blueprint\Steps
 */
class ActivateTheme extends Step {
	/**
	 * The name of the theme to be activated.
	 *
	 * @var string The name of the theme to be activated.
	 */
	private string $theme_name;

	/**
	 * ActivateTheme constructor.
	 *
	 * @param string $theme_name The name of the theme to be activated.
	 */
	public function __construct( $theme_name ) {
		$this->theme_name = $theme_name;
	}

	/**
	 * Returns the name of this step.
	 *
	 * @return string The step name.
	 */
	public static function get_step_name(): string {
		return 'activateTheme';
	}

	/**
	 * Returns the schema for the JSON representation of this step.
	 *
	 * @param int $version The version of the schema to return.
	 * @return array The schema array.
	 */
	public static function get_schema( int $version = 1 ): array {
		return array(
			'type'       => 'object',
			'properties' => array(
				'step'      => array(
					'type' => 'string',
					'enum' => array( static::get_step_name() ),
				),
				'themeName' => array(
					'type' => 'string',
				),
			),
			'required'   => array( 'step', 'themeName' ),
		);
	}

	/**
	 * Prepares an associative array for JSON encoding.
	 *
	 * @return array Array of data to be encoded as JSON.
	 */
	public function prepare_json_array(): array {
		return array(
			'step'      => static::get_step_name(),
			'themeName' => $this->theme_name,
		);
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨