wpcf7_plugin_path()CF7 1.0

Returns path to a plugin file.

Хуков нет.

Возвращает

Строку. Absolute file path.

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

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

Код wpcf7_plugin_path() CF7 5.6.4

function wpcf7_plugin_path( $path = '' ) {
	return path_join( WPCF7_PLUGIN_DIR, trim( $path, '/' ) );
}