You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, and thank you for this helpful plugin. :)
I use Enlighter plugin for comments and I need for access wp_editor buttons to all users include subscribers. so please add a custom hook to setupFrontend method of Enlighter Class.
publicfunctionsetupFrontend(){
// load frontend css+js resources$this->_resourceLoader->frontendEnlighter();
// check frontend user privileges$canEdit = is_user_logged_in() && (current_user_can('edit_posts') || current_user_can('edit_pages'));
########## I need to this hook ########################$canEdit = apply_filters("enlighter_can_edit", $canEdit );
#######################################################if ( $canEdit ){
$this->_resourceLoader->frontendEditor();
}
}
The text was updated successfully, but these errors were encountered:
Description: Forced enabling/disabling of the frontend editing functions. The default value is created by the condition USER_LOGGED_IN AND (CAN_EDIT_POSTS OR CAN_EDIT_PAGES). Useful to bind editing capabilities to special users/groups
Example 1 - Limit editing functions to admin users
Hi, and thank you for this helpful plugin. :)
I use Enlighter plugin for comments and I need for access wp_editor buttons to all users include subscribers. so please add a custom hook to setupFrontend method of Enlighter Class.
The text was updated successfully, but these errors were encountered: