2018-05-10 18:35:55 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
/* Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
|
|
|
|
* TODO: Test
|
|
|
|
*
|
|
|
|
* @param {String} path Relative path.
|
|
|
|
* @return {String} Full admin URL.
|
|
|
|
*/
|
2018-05-15 15:06:15 +00:00
|
|
|
export const getAdminLink = path => {
|
|
|
|
return wcSettings.adminUrl + 'admin.php?page=woodash#' + path;
|
2018-05-10 18:35:55 +00:00
|
|
|
};
|