wcap_plugin_path

Gets absolute path for plugin.

Description

wcap_plugin_path(); 

Usage

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

Defined (1)

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

/woocommerce-coupon-selector.php  
  1. function wcap_plugin_path() { 
  2.  
  3. return untrailingslashit( plugin_dir_path( __FILE__ ) );