wcde_filter_plugindir_slug

WP_PLUGIN_DIR file path to check/ load --- fallback to our plugin!.

Description

apply_filters( 'wcde_filter_plugindir_slug', $wcde_plugin_basedir ); 

Parameters (1)

0. $wcde_plugin_basedir
The wcde plugin basedir.

Usage

To run the hook, copy the example below.
  1. $wcde_plugin_basedir = apply_filters( 'wcde_filter_plugindir_slug', $wcde_plugin_basedir ); 
  2.  
  3. if ( !empty( $wcde_plugin_basedir ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wcde_filter_plugindir_slug callback 
  2. function filter_wcde_filter_plugindir_slug( $wcde_plugin_basedir ) { 
  3. // make filter magic happen here... 
  4. return $wcde_plugin_basedir
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wcde_filter_plugindir_slug', 'filter_wcde_filter_plugindir_slug', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wcde_filter_plugindir_slug', 'filter_wcde_filter_plugindir_slug', 10, 1 ); 

Defined (1)

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

/includes/wcde-functions.php  
  1. $wcde_plugindir_slug = apply_filters(