לאפשר למנהל חנות לנקות קאש ברוקט
Wed Sep 01 2021 13:23:18 GMT+0000 (UTC)
Saved by
@Shesek
// add clear cache option to shop owner
function wp_rocket_add_purge_cache_to_shop_owner() {
// gets the shop owner role object
$role = get_role('shop_manager');
// add a new capability
$role->add_cap('rocket_purge_cache', true);
}
add_action('init', 'wp_rocket_add_purge_cache_to_shop_owner', 12);
content_copyCOPY
קרדיט לאליק
Comments