OP 15 July, 2024 - 09:17 PM
Where do I make the change to null the theme?
// Get license data
$us_api_response = us_api( '/envato_auth', $get_variables, US_API_RETURN_ARRAY );
if (
is_array( $us_api_response )
AND isset( $us_api_response['status'] )
AND $us_api_response['status'] == 1
) {
if ( isset( $us_api_response['site_type'] ) AND $us_api_response['site_type'] == 'dev' ) {
update_option( 'us_license_dev_activated', /* set value */1 );
delete_option( 'us_license_activated' );
} else {
update_option( 'us_license_activated', /* set value */1 );
delete_option( 'us_license_dev_activated' );
}
update_option( 'us_license_secret', $get_variables['secret'] );
delete_transient( 'us_update_addons_data_' . US_THEMENAME );
}
} elseif (
get_option( 'us_license_activated' )
OR get_option( 'us_license_dev_activated' )
) {
$get_variables['secret'] = (string) get_option( 'us_license_secret' );
// Get license data
$us_api_response = us_api( '/envato_auth', $get_variables, US_API_RETURN_ARRAY );
if (
is_array( $us_api_response )
AND isset( $us_api_response['status'] )
AND $us_api_response['status'] !== 1
) {
delete_option( 'us_license_dev_activated' );
delete_option( 'us_license_activated' );
delete_option( 'us_license_secret' );
delete_transient( 'us_update_addons_data_' . US_THEMENAME );
}
}
if ( get_option( 'us_license_dev_activated' ) AND function_exists( 'us_update_option' ) ) {
us_update_option( 'maintenance_mode', /* set value */1 );
}
}
}
// Get license data
$us_api_response = us_api( '/envato_auth', $get_variables, US_API_RETURN_ARRAY );
if (
is_array( $us_api_response )
AND isset( $us_api_response['status'] )
AND $us_api_response['status'] == 1
) {
if ( isset( $us_api_response['site_type'] ) AND $us_api_response['site_type'] == 'dev' ) {
update_option( 'us_license_dev_activated', /* set value */1 );
delete_option( 'us_license_activated' );
} else {
update_option( 'us_license_activated', /* set value */1 );
delete_option( 'us_license_dev_activated' );
}
update_option( 'us_license_secret', $get_variables['secret'] );
delete_transient( 'us_update_addons_data_' . US_THEMENAME );
}
} elseif (
get_option( 'us_license_activated' )
OR get_option( 'us_license_dev_activated' )
) {
$get_variables['secret'] = (string) get_option( 'us_license_secret' );
// Get license data
$us_api_response = us_api( '/envato_auth', $get_variables, US_API_RETURN_ARRAY );
if (
is_array( $us_api_response )
AND isset( $us_api_response['status'] )
AND $us_api_response['status'] !== 1
) {
delete_option( 'us_license_dev_activated' );
delete_option( 'us_license_activated' );
delete_option( 'us_license_secret' );
delete_transient( 'us_update_addons_data_' . US_THEMENAME );
}
}
if ( get_option( 'us_license_dev_activated' ) AND function_exists( 'us_update_option' ) ) {
us_update_option( 'maintenance_mode', /* set value */1 );
}
}
}