Plugin Directory

Changeset 2667109


Ignore:
Timestamp:
01/27/2022 01:20:26 PM (4 years ago)
Author:
alonezcount
Message:

Moved the message "Please install woocommerce" to the admins notices

Location:
ezcount/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ezcount/trunk/EZcount.php

    r2635619 r2667109  
    44 * Plugin URI:
    55 * Description: invoicing, clearing and paypal integration plugin.
    6  * Version: 1.11.3
     6 * Version: 1.11.4
    77 * Author: EZcount
    88 * Author URI:
     
    1515$active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
    1616if ( !in_array( 'woocommerce/woocommerce.php', $active_plugins ) ) {
    17     echo "<br><br><h1>You must install & activate WooCommerce before installing EZCOUNT plugin!</h1><br><br>";
     17    add_action( 'admin_notices', 'notice_required_woo' );
    1818}
    1919
     20
     21function notice_required_woo() {
     22    $error_text = __( 'You must install & activate WooCommerce before installing EZCOUNT plugin!', 'ezcount_payment');
     23    ?>
     24    <div class="error notice">
     25        <p><h1><?= $error_text ?></h1></p>
     26    </div>
     27    <?php
     28}
    2029
    2130add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ),
  • ezcount/trunk/readme.txt

    r2635619 r2667109  
    44Tags        : Invoicing and clearing for Woocommerce, by EasyCount.
    55Tested up to: 5.8.2
    6 Version     : 1.11.3
     6Version     : 1.11.4
    77Stable tag: trunk
    88Requires PHP: 5.4
Note: See TracChangeset for help on using the changeset viewer.