Astra_Theme_Update::__construct()
Constructor
Description
Source
File: inc/theme-update/class-astra-theme-update.php
public function __construct() {
// Theme Updates.
if ( is_admin() ) {
add_action( 'admin_init', __CLASS__ . '::init', 5 );
} else {
add_action( 'wp', __CLASS__ . '::init', 5 );
}
add_action( 'init', __CLASS__ . '::astra_pro_compatibility' );
}
Expand full source code Collapse full source code View on Trac