__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Tracking
*/
/**
* Represents the default data.
*/
class WPSEO_Tracking_Default_Data implements WPSEO_Collection {
/**
* Returns the collection data.
*
* @return array The collection data.
*/
public function get() {
return [
'siteTitle' => get_option( 'blogname' ),
'@timestamp' => (int) gmdate( 'Uv' ),
'wpVersion' => $this->get_wordpress_version(),
'homeURL' => home_url(),
'adminURL' => admin_url(),
'isMultisite' => is_multisite(),
'siteLanguage' => get_bloginfo( 'language' ),
'gmt_offset' => get_option( 'gmt_offset' ),
'timezoneString' => get_option( 'timezone_string' ),
'migrationStatus' => get_option( 'yoast_migrations_free' ),
'countPosts' => $this->get_post_count( 'post' ),
'countPages' => $this->get_post_count( 'page' ),
];
}
/**
* Returns the number of posts of a certain type.
*
* @param string $post_type The post type return the count for.
*
* @return int The count for this post type.
*/
protected function get_post_count( $post_type ) {
$count = wp_count_posts( $post_type );
if ( isset( $count->publish ) ) {
return $count->publish;
}
return 0;
}
/**
* Returns the WordPress version.
*
* @return string The version.
*/
protected function get_wordpress_version() {
global $wp_version;
return $wp_version;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| class-tracking-addon-data.php | File | 4.12 KB | 0775 |
|
| class-tracking-default-data.php | File | 1.41 KB | 0775 |
|
| class-tracking-plugin-data.php | File | 2.03 KB | 0775 |
|
| class-tracking-server-data.php | File | 1.98 KB | 0775 |
|
| class-tracking-settings-data.php | File | 6.65 KB | 0775 |
|
| class-tracking-theme-data.php | File | 1.16 KB | 0775 |
|
| class-tracking.php | File | 6.86 KB | 0775 |
|