🚀 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
$

📄 DeactivatePlugin.php

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

namespace Automattic\WooCommerce\Blueprint\Steps;

/**
 * Class DeactivatePlugin
 */
class DeactivatePlugin extends Step {
	/**
	 * The plugin name.
	 *
	 * @var string $plugin_name The plugin name.
	 */
	private string $plugin_name;

	/**
	 * DeactivatePlugin constructor.
	 *
	 * @param string $plugin_name string The plugin name.
	 */
	public function __construct( $plugin_name ) {
		$this->plugin_name = $plugin_name;
	}

	/**
	 * Get the step name.
	 *
	 * @return string
	 */
	public static function get_step_name(): string {
		return 'deactivatePlugin';
	}

	/**
	 * Get the schema for this step.
	 *
	 * @param int $version The schema version.
	 *
	 * @return 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() ),
				),
				'pluginName' => array(
					'type' => 'string',
				),
			),
			'required'   => array( 'step', 'pluginName' ),
		);
	}

	/**
	 * Prepare the JSON array for this step.
	 *
	 * @return array
	 */
	public function prepare_json_array(): array {
		return array(
			'step'       => static::get_step_name(),
			'pluginName' => $this->plugin_name,
		);
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨