# erp/1.3.13/includes/class-status.php

ERP: Complete HR, Accounting &amp; CRM Suite Built for WooCommerce, version 1.3.13. 64 lines.

- Page: https://pluginprobe.com/plugins/erp/1.3.13/code/includes/class-status.php
- Raw: https://pluginprobe.com/plugins/erp/1.3.13/raw/includes/class-status.php
- Modified: 2018-09-03T08:36:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/erp/1.3.13/code/includes/class-status.php#L10-L20`.

```php
<?php
namespace WeDevs\ERP;

/**
 * ERP Status menu
 */
class Status {

	/**
     * Kick-in the class
     */
	public function __construct() {
		$this->status_scripts();

        include dirname( __FILE__ ) . '/framework/views/status-page.php';
	}

	/**
     * Get status scripts
     *
     * @return void
     */
	public function status_scripts() {
        wp_enqueue_script( 'erp-system-status' );
    }

    /**
     * Include status report file
     * 
     * @return void
     */
	public static function status_report() {
		include_once( dirname( __FILE__ ) . '/framework/views/status-report.php' );
	}
	
	/**
	 * Get latest version of a theme by slug.
	 * @param  object $theme WP_Theme object.
	 * @return string Version number if found.
	 */
	public static function get_latest_theme_version( $theme ) {
		include_once( ABSPATH . 'wp-admin/includes/theme.php' );

		$api = themes_api( 'theme_information', array(
			'slug'     => $theme->get_stylesheet(),
			'fields'   => array(
				'sections' => false,
				'tags'     => false,
			),
		) );

		$update_theme_version = 0;

		// Check .org for updates.
		if ( is_object( $api ) && ! is_wp_error( $api ) ) {
			$update_theme_version = $api->version;
		}

		return $update_theme_version;
	}

}


```
