Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    I just pushed an update version 1.2 that allows you to modify the capabilities a user needs to be able to view the menu item and admin screen. As an example you could create a new functionality plugin by adding a file “ecn-change-cap.php” in your plugins folder with the following:

    <?php
    /*
    Plugin Name: Event Calendar Newsletter Change Cap
    Description: Allow other users to access the Event Calendar Newsletter screen
    Version: 1.0
    Author: Brian Hogg
    Author URI: http://brianhogg.com
    License: GPL2
    */
    
    function ecn_change_cap( $cap ) {
    	return 'publish_posts';
    }
    
    add_filter( 'ecn_admin_capability', 'ecn_change_cap' );

    And this would change the capability required from ‘add_users’ to ‘publish_posts’ which by default will allow users with the Author, Editor and Admin roles to use it, but not Contributors and Subscribers:

    http://codex.wordpress.org/Roles_and_Capabilities

    Thanks!

    Thread Starter worldholder

    (@worldholder)

    Thanks Brian,
    you said you made an update version 1.2, but I cannot see it online, it’s still 1.1

    Plugin Author Brian Hogg

    (@brianhogg)

    There was an issue with the version update, it’s now been fixed.

    Thanks!
    Brian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make it accessible for other roles except administrators?’ is closed to new replies.