| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.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 : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www1/wp-content/plugins/google-site-kit/includes/Modules/Search_Console/ |
Upload File : |
<?php
/**
* Class Google\Site_Kit\Modules\Search_Console\Settings
*
* @package Google\Site_Kit\Modules\Search_Console
* @copyright 2021 Google LLC
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://sitekit.withgoogle.com
*/
namespace Google\Site_Kit\Modules\Search_Console;
use Google\Site_Kit\Core\Modules\Module_Settings;
use Google\Site_Kit\Core\Storage\Setting_With_Owned_Keys_Interface;
use Google\Site_Kit\Core\Storage\Setting_With_Owned_Keys_Trait;
/**
* Class for Search Console settings.
*
* @since 1.3.0
* @access private
* @ignore
*/
class Settings extends Module_Settings implements Setting_With_Owned_Keys_Interface {
use Setting_With_Owned_Keys_Trait;
const OPTION = 'googlesitekit_search-console_settings';
/**
* Registers the setting in WordPress.
*
* @since 1.3.0
*/
public function register() {
parent::register();
$this->register_owned_keys();
// Backwards compatibility with previous dedicated option.
add_filter(
'default_option_' . self::OPTION,
function ( $default ) {
$default['propertyID'] = $this->options->get( 'googlesitekit_search_console_property' ) ?: '';
return $default;
}
);
}
/**
* Gets the default value.
*
* @since 1.3.0
*
* @return array
*/
protected function get_default() {
return array(
'propertyID' => '',
'ownerID' => '',
);
}
/**
* Returns keys for owned settings.
*
* @since 1.31.0
*
* @return array An array of keys for owned settings.
*/
public function get_owned_keys() {
return array(
'propertyID',
);
}
}