woocommerce/plugins/woocommerce-admin/client/lib/nav-utils.js

11 lines
261 B
JavaScript
Raw Normal View History

/** @format */
/* Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
*
* @param {String} path Relative path.
* @return {String} Full admin URL.
*/
export const getAdminLink = path => {
return wcSettings.adminUrl + path;
};