You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
transmax/core/class/theme-verify.php
public function purchase_activation(){
$output = array( 'success' => 0, 'message' => '', 'error' => '');
if ( ! isset( $_POST['email'] ) || ! isset( $_POST['purchase_code'] ) || ! isset( $_POST['security'] ) || ! wp_verify_nonce( $_POST['security'], 'purchase-activation' ) ) {
$output['error'] = 1;
$output['message'] = esc_html__( 'Please enter a valid field', 'transmax' );
echo json_encode( $output );
wp_die();
}else{
$email = $_POST['email'];
$purchase = $_POST['purchase_code'];
if( ! is_email( $email ) ){
$output['error'] = 1;
$output['message'] = esc_html__( 'Please enter a valid email address.', 'transmax' );
echo json_encode( $output );
wp_die();
}
if(empty($purchase)){
$output['error'] = 1;
$output['message'] = esc_html__( 'Purchase code is empty ', 'transmax' );
echo json_encode( $output );
wp_die();
}
$return = self::check_activation($email, $purchase);
if( $return !== false ){
$result = $return['body'];
if(isset($result['success']) && !empty($result['success'])){
$output['purchase'] = $purchase;
$output['success'] = 1;
$output['email'] = $email;
$output['error'] = '';
$output['supported_until'] = isset($result['content']['supported_until']) ? $result['content']['supported_until'] : '';
$output['item_url'] = isset($result['content']['item']['url']) ? $result['content']['item']['url'] : '';
$output['message'] = esc_html__( 'Thank you, your license has been validated', 'transmax' );
update_option( 'wgl_licence_validated', $output );
update_option( WGL_Theme_Verify::get_instance()->item_id, $purchase );
update_option( 'wgl_js_activation', '' );
echo json_encode( $output );
}else{
$output['success'] = '';
$output['message'] = json_encode($return['message'], true);
$output['error'] = 1;
update_option( 'wgl_licence_validated', '' );
update_option( WGL_Theme_Verify::get_instance()->item_id, '' );
update_option( 'wgl_js_activation', '' );
echo json_encode( $output );
}
}else{
wp_send_json( '' );
}
}
wp_die();
}
public static function check_activation($email, $purchase){
$supported_until = new DateTime();
$supported_until->modify('+100 years');
$response = array(
'status' => 'success',
'success' => true,
'error' => 0,
'message' => 'Retrieved successfully',
'body' => array(
'success' => '1',
'purchase' => $purchase,
'email' => $email,
'content' => array(
'supported_until' => $supported_until->format('Y-m-d H:i:s'),
'item' => array(
'item_url' => 'http://transmax.webgeniuslab.net/',
'url' => 'http://transmax.webgeniuslab.net/',
)
),
'message' => 'Retrieved successfully',
)
);
return $response;
}
Am i the only one facing a 'wordpress error' after acctivating the plugins?? I noticed it is after i acctivate their 'WGL Extensions'.
Any Fixes??
Hello sir, facing 'wordpress error' whenever i activate the plugins. Especially the WGL Extensions
Roll back to elementor 3.10.2 and re-install WGL Extensions. Theme worked like a charm!yes, same.
'wordpress error' whenever i activate the plugin WGL Extensions
- Compatibility with WordPress 6.3
- Update of bundled plugins
- Minor code improvements
- Update: Bundled Plugins
- Compatibility with PHP 8.2+
- Minor fixes
Hey bud,@samoorai can you please update this theme to v1.0.17
Change Log:
Version 1.0.17 - 9 February 2024
- Update: Bundled Plugins
- Compatibility with PHP 8.2+
- Minor fixes
How did you solve the activation issue? I did not made it to work, please help me....Thank you it works!
Please can you tell me if this is correct?Add this code to line 8 of the functions.php file. It will activate the theme.
update_option( 'wgl_licence_validated', '**********' );
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.