wpcf7_plugin_url()
Returns the URL to a plugin file.
Хуков нет.
Возвращает
Строку
. URL.
Использование
wpcf7_plugin_url( $path );
- $path(строка)
- File path relative to the plugin root directory.
По умолчанию: ''
Код wpcf7_plugin_url() wpcf7 plugin url CF7 6.0.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; }