Hi @torao9340,
Can you please describe what’s happening ?
And also – please paste the code you’re using right now.
I’ve added code below to functions.php, which, according to topic https://wordpress.org/support/topic/can-shop-managers-preview-emails/, should make roles with manage_woocommerce capable of seeing live previews of e-mails:
add_filter('woo_preview_emails_min_capability', 'wpe5321_set_min_capacity');
function wpe5321_set_min_capacity($capability){
$capability = 'manage_woocommerce';
return $capability;
}
But it’s not working, I’ve got “You do not have permission to access the selected page” warning when i tried to edit this as Shop Manager. I tried to change ‘manage_woocommerce’ to something simpler, like ‘edit_posts’, but it’s also not working.
Hi @torao9340 ,
Apologies for the delay, I tried out the code provided and it’s working for me as intended. I added the code to my child theme and as a user i was able to view the emails as a Shop owner too.
Are you adding the code directly to your child theme or some other reason ?
I found what caused problem – it wasn’t problem with your plugin, but with Custom Admin Interface plugin: changing admin interface order made Preview Emails unusable for role. If someone would be interested – if you’re using plugins that change role capabilities you can allow to see preview emails for Shop Manager by setting manage_option as granted, instead of sing code in functions.php.
My apologies for confusion and thank you for help, have a nice day 🙂