register_owned_keys(); // Backwards compatibility with previous dedicated option. add_filter( 'default_option_' . self::OPTION, function ( $default_option ) { $default_option['propertyID'] = $this->options->get( 'googlesitekit_search_console_property' ) ?: ''; return $default_option; } ); } /** * 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', ); } }