12-25-2018, 01:24 PM
(11-16-2018 02:05 AM)batmax Wrote: [ -> ](11-15-2018 06:52 PM)tisna Wrote: [ -> ]here how to null avata v5.6.2
Navigate to Avada/includes/lib/inc/class-fusion-envato-api.php
Find and comment out these two lines:
Code:
PHP:
// Check the response code.
//$response_code = wp_remote_retrieve_response_code( $response );
//$response_message = wp_remote_retrieve_response_message( $response );
Navigate to Avada/includes/lib/inc/class-fusion-product-registration.php
Find:
PHP:
set_site_transient( 'fusion_envato_api_down', true, 600 );
Change 600 to 0
Find: Has user associated with current token purchased this product?
Change This:
PHP:
# Set "return false;" to "true":
public function is_registered() {
// Is the product registered?
if ( isset( $this->registered[ $this->product_id ] ) and& true === $this->registered[ $this->product_id ] ) {
return true;
}
// Is the Envato API down?
if ( get_site_transient( 'fusion_envato_api_down' ) ) {
return true;
}
// Fallback to false.
return false;
}
To THis:
PHP:
public function is_registered() {
// Is the product registered?
if ( isset( $this->registered[ $this->product_id ] ) and& true === $this->registered[ $this->product_id ] ) {
return true;
}
// Is the Envato API down?
if ( get_site_transient( 'fusion_envato_api_down' ) ) {
return true;
}
// Fallback to false.
return true;
}
I can't find this in the files 5.7.2. Using find in notepad++. Which line i can find them? Thank you.
Find manually, you cannot find with notepad++
FILE: Avada/includes/lib/inc/class-fusion-product-registration.php >> Line 259
FILE: Avada/includes/lib/inc/class-fusion-envato-api.php >> Line 115 + 116