Plugin Directory

Changeset 3114782


Ignore:
Timestamp:
07/09/2024 08:09:42 AM (19 months ago)
Author:
mestresdowp
Message:

update

Location:
checkout-mestres-wp
Files:
176 added
5 edited

Legend:

Unmodified
Added
Removed
  • checkout-mestres-wp/trunk/backend/core/cwmp-create-cron.php

    r3060996 r3114782  
    11<?php
    22
    3 if (! wp_next_scheduled ( 'cwmp_cron_events' )) {
    4 wp_schedule_event(time(), 'every_minute', 'cwmp_cron_events');
     3// Adiciona o intervalo personalizado de 'a cada minuto'
     4function cwmp_add_cron_interval($schedules) {
     5    $schedules['every_minute'] = array(
     6        'interval' => 60, // 60 segundos em um minuto
     7        'display' => __('A cada minuto')
     8    );
     9    return $schedules;
    510}
     11add_filter('cron_schedules', 'cwmp_add_cron_interval');
     12
     13// Verifica e agenda o evento cron se não estiver agendado
     14if (!wp_next_scheduled('cwmp_cron_events')) {
     15    wp_schedule_event(time(), 'every_minute', 'cwmp_cron_events');
     16}
  • checkout-mestres-wp/trunk/checkout-woocommerce-mestres-wp.php

    r3081151 r3114782  
    44* Plugin URI: http://www.mestresdowp.com.br/
    55* Description: Transform the Shopping Experience with Ease and Efficiency on your WooCommerce Site
    6 * Version: 8.2
     6* Version: 8.3
    77* Author: Mestres do WP
    88* Author URI: http://www.mestresdowp.com.br
  • checkout-mestres-wp/trunk/env.php

    r3081151 r3114782  
    11<?php
    2 define("CWMP_VERSAO","8.2");
     2define("CWMP_VERSAO","8.3");
    33define("CWMP_PLUGIN_URL",plugin_dir_url( __FILE__ ) );
    44define("CWMP_PLUGIN_PATH",plugin_dir_path( __FILE__ ) );
    55define("CWMP_URL_API","https://whatstotal.com.br/sender/");
    6 define("CWMP_URL_API_MULTI","https://whaticket.whatstotal.dev.br/api/messages/send");
     6define("CWMP_URL_API_MULTI","https://api.wtstotal.com/message/sendText/");
  • checkout-mestres-wp/trunk/frontend/core/cwmp-functions.php

    r3080800 r3114782  
    211211        $data = array(
    212212            'number' => $numero,
    213             'body' => $mensagem
     213            'textMessage' => array(
     214                "text"=>$mensagem
     215            )
    214216        );
    215217        $header = array(
    216             'Authorization' => 'Bearer '.get_option('cwmp_key_endpoint_wpp').'',
     218            'apikey' => get_option('cwmp_key_endpoint_wpp'),
    217219            'Content-Type' => 'application/json'
    218220        );
    219         $send = wp_remote_post(CWMP_URL_API_MULTI, array(
     221        $send = wp_remote_post(CWMP_URL_API_MULTI."".get_option('cwmp_key_endpoint_wpp'), array(
    220222            'method' => 'POST',
    221223            'headers' => $header,
     
    330332    }
    331333    if(is_product()){
    332         wp_enqueue_script( 'cwmp_frontend_simulador_js', CWMP_PLUGIN_URL.'assets/js/simulador-frete.js', array('jquery'), wp_rand(111,9999),array('strategy'=>'defer','in_footer'=>true));
    333         if(!empty($data)){ wp_localize_script( 'cwmp_frontend_simulador_js', 'cwmp', $data); }
    334334        if(get_option('cwmp_pmwp_active')=="S"){
    335335            if ( is_plugin_active( 'elementor-pro/elementor-pro.php' ) ) {
     
    339339            }
    340340            wp_localize_script( 'pmwp_scripts', 'pmwp_ajax', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
    341             wp_enqueue_script('pmwp_add_to_cart', CWMP_PLUGIN_URL . 'assets/js/add-to-cart.js', array('jquery'),wp_rand(111,9999), true);
     341           
    342342        }
    343343    }
  • checkout-mestres-wp/trunk/readme.txt

    r3081151 r3114782  
    55Requires at least: 4.7
    66Tested up to: 6.5
    7 Stable tag: 8.2
     7Stable tag: 8.3
    88Requires PHP: 7.3.0
    99License: GPLv2 or later
     
    8787
    8888== Changelog ==
     89
     90= v8.2 07/09/2024 =
     91* Correção API Whatstotal.
     92* Criação de CRON automático caso seja excluído pelo servidor.
     93* Remoção do arquivo simulador-frete.js.
     94* Diversas Correções.
    8995
    9096= v8.2 05/04/2024 =
Note: See TracChangeset for help on using the changeset viewer.