• Resolved Jalopy

    (@jalopy)


    I cloned the Admin account as only the Admin is able to get to the settings of a photo gallery plugin, the clone account that I created with all capabilities can’t see this plugin, are there other capabilities which are not copied? or where can I look to see what the differences are betweenthe original Admin and a clone Admin.

    https://wordpress.org/plugins/members/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Most likely, the photo gallery plugin you’re using is incorrectly calling a role like administrator instead of using the capability system in WordPress. Feel free to link to the plugin’s download page, and I’ll check it out.

    Thread Starter Jalopy

    (@jalopy)

    Thanks Justin, on looking at the code he has!

    function add_my_responsive_photo_gallery_admin_menu(){

    $hook_suffix_r_p=add_menu_page( __( ‘Responsive Photo Gallery’), __( ‘Responsive Photo Gallery’ ), ‘administrator’, ‘responsive_photo_gallery_slider’, ‘responsive_photo_gallery_slider_admin_options’ );
    $hook_suffix_r_p=add_submenu_page( ‘responsive_photo_gallery_slider’, __( ‘Slider Setting’), __( ‘Slider Setting’ ),’administrator’, ‘responsive_photo_gallery_slider’, ‘responsive_photo_gallery_slider_admin_options’ );
    $hook_suffix_r_p_1=add_submenu_page( ‘responsive_photo_gallery_slider’, __( ‘Manage Images’), __( ‘Manage Images’),’administrator’, ‘responsive_photo_gallery_image_management’, ‘responsive_photo_gallery_image_management’ );
    $hook_suffix_r_p_2=add_submenu_page( ‘responsive_photo_gallery_slider’, __( ‘Preview Slider’), __( ‘Preview Slider’),’administrator’, ‘responsive_photo_gallery_slider_preview’, ‘responsive_photo_gallery_slider_admin_preview’ );

    Yep, administrator shouldn’t be used there. It’d be best to changed that to manage_options or a custom capability.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Clone of Admin’ is closed to new replies.