• WIBeditor

    (@wibeditor)


    Well-thought out, unlike a lot of code snippets floating around. Handles AJAX issues, for instance.
    Bonus points for posting on Github (I forked for a multisite setup).
    Cheers

Viewing 1 replies (of 1 total)
  • Hi WIBeditor,

    Thanks for nice review ??

    FYI, in v1.1 released yesterday, there’s a new filter on the capability used for access, ‘rda_access_capability’.

    The following should work for the change you made in your fork:

    /**
     * Filter the Remove Dashboard Access capability.
     *
     * @param string $capability Needed capability.
     * @return string (maybe) filtered capability.
     */
    function filter_rda_access_capability( $capability ) {
    	if ( is_multisite() ) {
    		$capability = 'manage_network';
    	}
    	return $capability;
    }
    add_filter( 'rda_access_capability', 'filter_rda_access_capability' );

Viewing 1 replies (of 1 total)
  • The topic ‘Good plugin thanks!’ is closed to new replies.