I spoke with several Premiumpress users who have various PP sites since 10 years
The problem we were talking about is that authors (or editors) cannot post blog posts anymore with Premiumpress theme, they don’t see the admin bar anymore, only admin can see it, and even admin can’t post blog post from the admin bar (new post)
authors unable to post blog posts on WordPress sites > a huge problem that needs to be solved
Here is the solution
find File DT10\framework\new_class\ppt_core.php
Change
// REMOVE ADMIN BAR FROM NON-ADMINS
if(!current_user_can(‘administrator’)){
add_filter( ‘show_admin_bar’, ‘__return_false’ );
}
by
// REMOVE ADMIN BAR FROM ALL EXCEPT ADMINS EDITORS AND AUTHORS
if(!current_user_can(‘publish_posts’)){
add_filter( ‘show_admin_bar’, ‘__return_false’ );
}
AND
remove line 1581 :
$wp_admin_bar->remove_node( ‘new-post’ );
Any wordpress site has one or several authors, so if they can’t post anymore blog posts anymore, it’s a huge problem, this fix solves the problem
A new PP user is a subscriber, so they won’t see the admin bar with the code above, (which was the goal of PP original code but it was too restrictive as it also applied to authors and editors)
We suggest Premiumpress could add this fix in future versions 🙂
Hi
I spoke with several Premiumpress users who have various PP sites since 10 years
The problem we were talking about is that authors (or editors) cannot post blog posts anymore with Premiumpress theme, they don’t see the admin bar anymore, only admin can see it, and even admin can’t post blog post from the admin bar (new post)
authors unable to post blog posts on WordPress sites > a huge problem that needs to be solved
Here is the solution
find File DT10\framework\new_class\ppt_core.php
Change
// REMOVE ADMIN BAR FROM NON-ADMINS
if(!current_user_can(‘administrator’)){
add_filter( ‘show_admin_bar’, ‘__return_false’ );
}
by
// REMOVE ADMIN BAR FROM ALL EXCEPT ADMINS EDITORS AND AUTHORS
if(!current_user_can(‘publish_posts’)){
add_filter( ‘show_admin_bar’, ‘__return_false’ );
}
AND
remove line 1581 :
$wp_admin_bar->remove_node( ‘new-post’ );
Any wordpress site has one or several authors, so if they can’t post anymore blog posts anymore, it’s a huge problem, this fix solves the problem
A new PP user is a subscriber, so they won’t see the admin bar with the code above, (which was the goal of PP original code but it was too restrictive as it also applied to authors and editors)
We suggest Premiumpress could add this fix in future versions 🙂
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now