Plugin visible to editor

This topic contains 1 reply and 2 voices, and was last updated by Sekander Badsha 9 years, 7 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
September 23, 2014 at 4:25 pm 27302
Sekander Badsha Hello Guys, how is it possible to give also visibility of this plugin to the editor also. Because I don't want to give admin permissions to my client. thanks
September 24, 2014 at 8:24 pm 27448
Sekander Badsha Sekander Badsha

Add this codes to your themes (or child theme) functions.php
[php]
function dokan_ex_modify_admin_permission( $permission ) {
return ‘edit_pages’; //editor
}

add_filter( ‘doakn_menu_capability’, ‘dokan_ex_modify_admin_permission’ );
[/php]

Viewing 1 Posts - 1 through 1 (of 1 total)