Changeset 2462567
- Timestamp:
- 01/25/2021 11:16:28 PM (5 years ago)
- Location:
- powers-triggers-of-woo-to-chat/trunk
- Files:
-
- 3 edited
-
class-wwp-woocommerce-front.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wc-whatsapp-powers.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
powers-triggers-of-woo-to-chat/trunk/class-wwp-woocommerce-front.php
r2390559 r2462567 45 45 46 46 //ACTION TO CREAT TO SAVE NOTIFY FIELD 47 add_action( 'woocommerce_after_order_notes', array( $this, 'wwp_option_field' ) ); 47 if (is_plugin_active('woofunnels-aero-checkout/woofunnels-aero-checkout.php')) { 48 add_action( 'woocommerce_review_order_before_payment', array( $this, 'wwp_option_field' ) ); 49 } else{ 50 add_action( 'woocommerce_after_order_notes', array( $this, 'wwp_option_field' ) ); 51 } 52 48 53 add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'wwp_save_option_field' ) ); 49 54 } -
powers-triggers-of-woo-to-chat/trunk/readme.txt
r2460034 r2462567 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Único plugin que envia mensagens What App automáticas ilimitadas para os seus clientes10 Único plugin que envia mensagens WhatsApp automáticas ilimitadas para os seus clientes 11 11 12 12 Novidade! Integração com Contact Form 7, para enviar mensagens quando o formulário é submetido! … … 50 50 51 51 == Changelog == 52 * 1.3.5 53 * Correção para checkouts que usam plugin aero checkout; 52 54 * 1.3.4 53 55 * Pequena correção de bug; -
powers-triggers-of-woo-to-chat/trunk/wc-whatsapp-powers.php
r2460034 r2462567 4 4 * Plugin URI: https://wordpress.org/plugins/powers-triggers-of-woo-to-chat/ 5 5 * Description: Automatiza envio de mensagens Whatsapp. 6 * Version: 1.3. 46 * Version: 1.3.5 7 7 * Author: Felipe Peixoto 8 8 * Author URI: http://felipepeixoto.tecnologia.ws/ … … 15 15 16 16 17 register_activation_hook( __FILE__, ' wwp_active_plugin' );17 register_activation_hook( __FILE__, 'pac_active_plugin' ); 18 18 register_deactivation_hook( __FILE__, 'wwp_deactive_plugin' ); 19 19 … … 70 70 } 71 71 72 function wwp_active_plugin() { 73 global $wwp_db_version; 74 $args = array( true ); 75 if (! wp_next_scheduled ( 'wwp_reminder_action', $args )) { 76 wp_schedule_event( time(), 'hourly', 'wwp_reminder_action', $args ); 72 if (!function_exists('pac_active_plugin')) { 73 function pac_active_plugin() { 74 global $wwp_db_version; 75 $args = array( true ); 76 if (! wp_next_scheduled ( 'wwp_reminder_action', $args )) { 77 wp_schedule_event( time(), 'hourly', 'wwp_reminder_action', $args ); 78 } 79 wwp_update_db_check(); 80 77 81 } 78 wwp_update_db_check();79 80 82 } 81 function wwp_deactivation_plugin() { 83 84 function pac_deactivation_plugin() { 82 85 wp_clear_scheduled_hook( 'wwp_reminder_action' ); 83 86 } 87 84 88 85 89 function wwp_is_plugin_active( $plugin ) { 86 90 return in_array( $plugin, (array) get_option( 'active_plugins', array() ) ); 87 91 } 92 88 93 89 94 … … 96 101 $wwp_path = plugin_dir_path(__FILE__); 97 102 if (is_admin()){ 98 add_action( 'init', ' wwp_init_admin', PHP_INT_MAX );103 add_action( 'init', 'pac_init_admin', PHP_INT_MAX ); 99 104 } 100 105 101 function wwp_init_admin() {106 function pac_init_admin() { 102 107 require plugin_dir_path( __FILE__ ) . 'admin/class-wwp-admin.php'; 103 108 $wwp_admin = new Woowhatspowers_Admin();
Note: See TracChangeset
for help on using the changeset viewer.