3D FlipBook - Granting shortcode generator (and more) access for Editor Role

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

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

e***j@ornl.gov
2019-11-19
2019-11-19

This question is now 4 days old. Is there any actual support for this product here?

a***r@3dflipbook.net
2019-11-24
2019-11-24

Hi,

edit plugin file: shortcode-generator.php

replace manage_options with edit_posts on 9 line.

e***j@ornl.gov
2019-11-25
2019-11-25

Thank you, that works. But what happens when I update the plugin? Won't it get erased? Is there a way to add some code to my functions.php so it won't get overwritten?

a***r@3dflipbook.net
2019-11-26
2019-11-26

Future updates will include this change.

e***j@ornl.gov
2019-11-26
2019-11-26

Okay, great. Thanks!

Log In to leave a comment