wpcf7_plugin_url()CF7 1.0

Returns the URL to a plugin file.

Хуков нет.

Возвращает

Строку. URL.

Использование

wpcf7_plugin_url( $path );
$path(строка)
File path relative to the plugin root directory.
По умолчанию: ''

Код wpcf7_plugin_url() CF7 5.9.3

function wpcf7_plugin_url( $path = '' ) {
	$url = plugins_url( $path, WPCF7_PLUGIN );

	if ( is_ssl()
	and 'http:' == substr( $url, 0, 5 ) ) {
		$url = 'https:' . substr( $url, 5 );
	}

	return $url;
}