ActionScheduler::plugin_path()public staticWC 1.0

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

Method of the class: ActionScheduler{}

No Hooks.

Returns

String.

Usage

$result = ActionScheduler::plugin_path( $path );
$path(string) (required)
Path relative to plugin directory.

ActionScheduler::plugin_path() code WC 9.8.5

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