wpcf7_plugin_path

The Contact Form 7 wpcf7 plugin path function.

Description

wpcf7_plugin_path( (string) $path = '' ); 

Parameters (1)

0. $path — Optional. (string) => ''
The path.

Usage

  1. if ( !function_exists( 'wpcf7_plugin_path' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/functions.php'; 
  3.  
  4. // The path. 
  5. $path = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_plugin_path($path); 
  9.  

Defined (1)

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

/includes/functions.php  
  1. function wpcf7_plugin_path( $path = '' ) { 
  2. return path_join( WPCF7_PLUGIN_DIR, trim( $path, '/' ) );