Two ways, depending:
1. Restricted access, user only se own email account, for users who have an account under the website’s domain: With a roles/capabilities plugin, grant access to custom capability ‘cpanel’. Will not work if user has foreign email account, like x@gmail, x@hotmail etc.
2. Full access. As stated on the description page for this plugin:
Option to allow other users than those with manage_options capability to manage email adresses, single- or multisite, one of following
add_filter( ‘wf_cpanel_email_capability’, static fn( string $cap ) => $my_cpanel_email_cap );
add_filter( ‘wf_cpanel_email_capability’, static fn( string $cap ) => ‘edit_published_pages’ );
So, if $my_cpanel_email_cap
is 'edit_posts'
, anyone from contributor role and up will have access (to all). But 'edit_published_pages'
will give only Edtors access. See Roles and Capabilities for details.
You put either in functions.php
of your child theme (if you use a child theme) or, better, in a custom plugin for your site and for this plugin. A custom plugin is a PHP file in plugins
, or a subfolder, with this header:
/**
* Plugin Name: My Customize Email Accounts plugin name
*/
the wanted PHP code below the header, and activate it in Plugins.