ActionScheduler::plugin_path()public staticWC 1.0

Get the absolute system path to the plugin directory, or a file therein

Метод класса: ActionScheduler{}

Хуков нет.

Возвращает

Строку.

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

$result = ActionScheduler::plugin_path( $path );
$path(строка) (обязательный)
Path relative to plugin directory.

Код ActionScheduler::plugin_path() WC 9.6.1

public static function plugin_path( $path ) {
	$base = dirname( self::$plugin_file );
	if ( $path ) {
		return trailingslashit( $base ) . $path;
	} else {
		return untrailingslashit( $base );
	}
}