PluginProbe
Additional Terms Lite for WooCommerce / 1.0.2
Additional Terms Lite for WooCommerce v1.0.2
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
woo-additional-terms / includes / requirements.php

requirements.php in Additional Terms Lite for WooCommerce 1.0.2, at includes/requirements.php

19 lines 720 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Query WooCommerce activation.
4 *
5 * @author Mahdi Yazdani
6 * @package Woo Additional Terms
7 * @since 1.0
8 */
9 if (!function_exists('woo_additional_terms_req_notice_error')):
10 function woo_additional_terms_req_notice_error() {
11 $class = 'notice notice-error';
12 $message = __( 'Woo Additional Terms is enabled but not effective. It requires WooCommerce in order to work.', 'woo-additional-terms' );
13 printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
14 }
15 endif;
16 include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
17 if ( !is_plugin_active( 'woocommerce/woocommerce.php' ) ) :
18 add_action( 'admin_notices', 'woo_additional_terms_req_notice_error' );
19 endif;