Julien Liabeuf on "[Plugin: Awesome Support - WordPress Support Plugin] Tags & Products show up in wp-admin for subscribers"

خرید بک لینک

Hey guys,

first: Great plugin, i am just playing around with it and will launch it on my live site soon!

I've found out, that subscribers can see the "Tickets" Menu in the wp-admin. The only thing i did is giving the subscribers the capabilities with this code snippet below:

function add_theme_caps() {
    // gets the author role
    $role = get_role( 'subscriber' );

    $role->add_cap('view_ticket');
    $role->add_cap('create_ticket');
    $role->add_cap('close_ticket');
    $role->add_cap('reply_ticket');
    $role->add_cap('attach_files');
}
add_action( 'admin_init', 'add_theme_caps');

I also tried this on a fresh installation with the same results.

Screenshot:
https://www.dropbox.com/s/4jtyjrdpoljhglo/awesomesupport.png?dl=0

Best,
David

https://wordpress.org/plugins/awesome-support/

By giving those capabilities to a role, you basically "transform" the role into a support client. They still won't have access to anything more in the admin, but they will be able to submit / manage tickets on the front-end pages.

WordPress ...

ما را در سایت WordPress دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 318 تاريخ: شنبه 2 مرداد 1395 ساعت: 19:00

صفحه بندی