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

Embed Snippet on Your Site

Allow Other WordPress Roles to View Email Logs

This snippet will allow you to manage the capabilities of roles allowed to view 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_admin_area_get_logs_access_capability', function (){
	// Change this to any other capability of your choosing.
	return 'manage_options';
});

Comments

Add a Comment