Plugin Directory

Changeset 2384607


Ignore:
Timestamp:
09/18/2020 05:59:03 PM (6 years ago)
Author:
felipe152
Message:
  • 1.3.1
  • Pequena correção de bug;
Location:
powers-triggers-of-woo-to-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • powers-triggers-of-woo-to-chat/trunk/readme.txt

    r2380710 r2384607  
    4444
    4545== Changelog ==
     46* 1.3.1
     47* Pequena correção de bug;
    4648* 1.3.0
    4749* Nova integração com Contact Form 7;
  • powers-triggers-of-woo-to-chat/trunk/wc-whatsapp-powers.php

    r2380710 r2384607  
    2929}
    3030
     31function wwp_is_plugin_active( $plugin ) {
     32    return in_array( $plugin, (array) get_option( 'active_plugins', array() ) );
     33}
     34
     35
    3136$args = array( true );
    3237if (! wp_next_scheduled ( 'wwp_reminder_action', $args )) {
     
    4651
    4752add_action('init', function() {
    48     if (is_plugin_active('woocommerce/woocommerce.php')){
     53    if (wwp_is_plugin_active('woocommerce/woocommerce.php')){
    4954        include_once('class-wwp-woocommerce-front.php');
    5055        new Woowhatspowers_Woocommerce_Front();
    5156    }
    5257
    53     if (is_plugin_active('contact-form-7/wp-contact-form-7.php')){
     58    if (wwp_is_plugin_active('contact-form-7/wp-contact-form-7.php')){
    5459        include_once('class-wwp-contactform7-front.php');
    5560        new Woowhatspowers_Contactform7_Front();
Note: See TracChangeset for help on using the changeset viewer.