wc_extra_fee_option_error_notice

The WooCommerce Extra Fee Option wc extra fee option error notice function.

Description

wc_extra_fee_option_error_notice(); 

Usage

  1. if ( !function_exists( 'wc_extra_fee_option_error_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-extra-fee-option/wc-extra-fee-option.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_extra_fee_option_error_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wc-extra-fee-option.php  
  1. function wc_extra_fee_option_error_notice() { 
  2. global $current_screen; 
  3. if($current_screen->parent_base == 'plugins') { 
  4. echo '<div class="error"><p>'.__(wc_plugin_name_extra_fee_option.' requires <a href="http://www.woothemes.com/woocommerce/" target="_blank">WooCommerce</a> to be activated in order to work. Please install and activate <a href="'.admin_url('plugin-install.php?tab=search&type=term&s=WooCommerce').'" target="_blank">WooCommerce</a> first.').'</p></div>';