Home / Admin / Allow Other WordPress Roles to Manage Email Logs
Duplicate Snippet

Embed Snippet on Your Site

Allow Other WordPress Roles to Manage Email Logs

This snippet will allow you to manage the capabilities of roles allowed to manage the site's email logs. On line 8, you can change this to any other capability of your choosing.

Code Preview
php
<?php
/* Allow Other WordPress Roles to View Email Logs  
 * 
 * Original doc: https://wpmailsmtp.com/docs/allowing-other-wordpress-roles-to-view-or-manage-email-logs/
*/
add_filter( 'wp_mail_smtp_pro_emails_logs_logs_get_manage_capability', function (){
	// Change this to any other capability of your choosing.
	return 'manage_options';
});

Comments

Add a Comment