PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 19.0
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v19.0
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / tracking / class-tracking-default-data.php

class-tracking-default-data.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 19.0, at admin/tracking/class-tracking-default-data.php

44 lines 975 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin\Tracking
6 */
7
8 /**
9 * Represents the default data.
10 */
11 class WPSEO_Tracking_Default_Data implements WPSEO_Collection {
12
13 /**
14 * Returns the collection data.
15 *
16 * @return array The collection data.
17 */
18 public function get() {
19 return [
20 'siteTitle' => get_option( 'blogname' ),
21 '@timestamp' => (int) gmdate( 'Uv' ),
22 'wpVersion' => $this->get_wordpress_version(),
23 'homeURL' => home_url(),
24 'adminURL' => admin_url(),
25 'isMultisite' => is_multisite(),
26 'siteLanguage' => get_bloginfo( 'language' ),
27 'gmt_offset' => get_option( 'gmt_offset' ),
28 'timezoneString' => get_option( 'timezone_string' ),
29 'migrationStatus' => get_option( 'yoast_migrations_free' ),
30 ];
31 }
32
33 /**
34 * Returns the WordPress version.
35 *
36 * @return string The version.
37 */
38 protected function get_wordpress_version() {
39 global $wp_version;
40
41 return $wp_version;
42 }
43 }
44