3D FlipBook - Need access for editor role to generate shortcodes

e***j@ornl.gov
2019-11-21
2019-11-24

I posted this before, but can no longer find my post. I posted it about a week ago.

I need the ability for editors to generate shortcodes. How can this be done? I have the 1.9.19 Pro version running on WordPress 5.2. I can add something in functions.php, but I don’t know what to add.

I was thinking something like this?

if ( is_admin() ) { add_action( ‘admin_menu’, ‘add_3dflip_for_editors’ ); }

function add_3dflip_for_editors() { $role = get_role( ‘editor’ ); $role->add_cap( ‘….???….’ ); }

Replies

a***r@3dflipbook.net
2019-11-24
2019-11-24
Log In to leave a comment