Allow shop managers to edit privacy policy page and elementor widgets problems

[ad_1]

Hi @giannisdigitup,

Thanks for reaching out Members Suppoprt Team!

That’s more related to WooCommerce that limits capabilities of role.

Regarding Elementor issue, please share a screenshot of the issue so I can check.

Regards,

Hello,

I have logged in as a shop manager and I can not edit the Privacy Policy page. It is is greek but the translation is Privacy Policy.

https://prnt.sc/rbD92gwVJAFy

Thanks!

As described in this article, please add this code to theme functions.php file and let me know if it helps.

add_action( 'map_meta_cap', 'custom_manage_privacy_options', 1, 4 );
function custom_manage_privacy_options( $caps, $cap, $user_id, $args ) {
if ( ! is_user_logged_in() ) {
return $caps;
}

$user_meta = get_userdata( $user_id );
if ( is_array( $user_meta->roles ) && array_intersect( array( 'shop_manager' ), $user_meta->roles ) ) {
if ( 'manage_privacy_options' === $cap ) {
$manage_name = is_multisite() ? 'manage_network' : 'manage_options';
$caps = array_diff( $caps, array( $manage_name ) );
}
}
return $caps;
}

Regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer