• Resolved alwiggins

    (@alwiggins)


    I am new to Pods. I am working on a staging site in a university system. Pods is one of the available plugins but we have discovered that it requires Super-admin privileges in order for the Pods Admin menu item to appear in the WP dashboard. Our super-admins were looking for a setting that would allow them to provide Pods access to Admins but didn’t see anything. The work around will be to provide me super-admin privileges while I test Pods, but this will not be sustained long term once the site moves from staging to live. What do you suggest? Thanks, Craig

Viewing 1 replies (of 1 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    One workaround is to update the administrator role on the site with the capability “pods”.

    Another workaround is to filter the pods_admin_capabilities value and add whatever capability check you want. Like “edit_users” or “manage_options”:

    /**
     * Filter the capabilities that are required to access the Pods Admin area to include whatever caps we want.
     * 
     * @param array $pods_admin_capabilities The capabilities that are required to access the Pods Admin area.
     *
     * @return array The capabilities that are required to access the Pods Admin area.
     */
    function my_custom_pods_admin_capabilities( $pods_admin_capabilities ) {
    	$pods_admin_capabilities[] = 'edit_users';
    	$pods_admin_capabilities[] = 'manage_options';
    	
    	return $pods_admin_capabilities;
    }
    add_filter( 'pods_admin_capabilities', 'my_custom_pods_admin_capabilities' );

    Ultimately, I want to add a network setting that can enable/disable admin on individual sites and choose which capabilities can get access.

Viewing 1 replies (of 1 total)
  • The topic ‘Pods Admin menu item in dashboard’ is closed to new replies.