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
if ( !function_exists( 'wpcf7_plugin_path' ) ) { require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/functions.php'; } // The path. $path = ''; // NOTICE! Understand what this does before running. $result = wpcf7_plugin_path($path);
Defined (1)
The function is defined in the following location(s).
- /includes/functions.php
- function wpcf7_plugin_path( $path = '' ) {
- return path_join( WPCF7_PLUGIN_DIR, trim( $path, '/' ) );
- }