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`.
|
|
|
|
*
|
|
|
|
* @param {String} path Relative path.
|
|
|
|
* @return {String} Full admin URL.
|
|
|
|
*/
|
2018-05-15 15:06:15 +00:00
|
|
|
export const getAdminLink = path => {
|
2018-05-22 15:19:56 +00:00
|
|
|
return wcSettings.adminUrl + path;
|
2018-05-10 18:35:55 +00:00
|
|
|
};
|