if ( class_exists( 'Envira_Gallery' ) ) {
// Possibly verify the key.
$this->maybe_verify_key();
// Add potential admin notices for actions around the admin.
add_action( 'admin_notices', array( $this, 'notices' ) );
// Grab the license key. If it is not set (even after verification), return early.
$this->key = $this->base->get_license_key();
if ( ! $this->key ) {
return;
}
// Possibly handle validating, deactivating and refreshing license keys.
$this->maybe_validate_key();
$this->maybe_deactivate_key();
$this->maybe_refresh_key();
}