wpcf7_plugin_url
The Contact Form 7 wpcf7 plugin url function.
Description
wpcf7_plugin_url( (string) $path = '' );
Parameters (1)
- 0. $path — Optional. (string) =>
''
- The path.
Usage
if ( !function_exists( 'wpcf7_plugin_url' ) ) { require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/functions.php'; } // The path. $path = ''; // NOTICE! Understand what this does before running. $result = wpcf7_plugin_url($path);
Defined (1)
The function is defined in the following location(s).
- /includes/functions.php
- function wpcf7_plugin_url( $path = '' ) {
- $url = plugins_url( $path, WPCF7_PLUGIN );
- if ( is_ssl() && 'http:' == substr( $url, 0, 5 ) ) {
- $url = 'https:' . substr( $url, 5 );
- }
- return $url;
- }