wpcf7_plugin_path() │ CF7 1.0

Returns path to a plugin file.

Хуков нет.

Возвращает

string. Absolute file path.

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

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

Код wpcf7_plugin_path() CF7 6.2.4.1

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