HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/www/wp-content/plugins/seo-by-rank-math/includes/admin/wizard/class-ready.php
<?php
/**
 * The Ready wizard step
 *
 * @since      0.9.0
 * @package    RankMath
 * @subpackage RankMath\Wizard
 * @author     Rank Math <[email protected]>
 */

namespace RankMath\Wizard;

use RankMath\Helper;

defined( 'ABSPATH' ) || exit;

/**
 * Step class.
 */
class Ready implements Wizard_Step {
	/**
	 * Get Localized data to be used in the Compatibility step.
	 *
	 * @return array
	 */
	public static function get_localized_data() {
		Helper::is_configured( true );
		return [
			'scoreImg'           => esc_url( rank_math()->plugin_url() . 'assets/admin/img/score-100.png' ),
			'dashboardUrl'       => Helper::get_dashboard_url(),
			'enable_auto_update' => boolval( Helper::get_auto_update_setting() ),
		];
	}

	/**
	 * Save handler for step.
	 *
	 * @param array $values Values to save.
	 *
	 * @return bool
	 */
	public static function save( $values ) {
		$value = ! empty( $values['enable_auto_update'] ) ? 'on' : 'off';
		Helper::toggle_auto_update_setting( $value );
		return true;
	}
}