woosample_tab_error_notice

The WooCommerce Sample woosample tab error notice function.

Description

woosample_tab_error_notice(); 

Usage

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

Defined (1)

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

/woocommerce-sample.php  
  1. function woosample_tab_error_notice() { 
  2. global $current_screen; 
  3. if ($current_screen->parent_base == 'plugins') { 
  4. echo '<div class="error"><p>' . sprintf(__('WooCommerce Sample 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="%1$s" target="_blank">WooCommerce</a> first.', 'woosample'), admin_url('plugin-install.php?tab=search&type=term&s=WooCommerce') ) . '</p></div>';