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

  1. if ( !function_exists( 'wpcf7_plugin_url' ) ) { 
  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_url($path); 
  9.  

Defined (1)

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

/includes/functions.php  
  1. function wpcf7_plugin_url( $path = '' ) { 
  2. $url = plugins_url( $path, WPCF7_PLUGIN ); 
  3.  
  4. if ( is_ssl() && 'http:' == substr( $url, 0, 5 ) ) { 
  5. $url = 'https:' . substr( $url, 5 ); 
  6.  
  7. return $url;