woocommerce/plugins/woocommerce-admin/lib/common.php

24 lines
593 B
PHP
Raw Normal View History

<?php
/**
* Retrieves the root plugin path.
*
* @param string $file Optional relative path of the desired file.
*
* @return string Root path to the gutenberg custom fields plugin.
*/
function woo_dash_dir_path( $file = '' ) {
return plugin_dir_path( dirname(__FILE__ ) ) . $file;
}
/**
* Retrieves a URL to a file in the gutenberg custom fields plugin.
*
* @param string $path Relative path of the desired file.
*
* @return string Fully qualified URL pointing to the desired file.
*/
function woo_dash_url( $path ) {
return plugins_url( $path, dirname( __FILE__ ) );
}