Support » Plugin: Content Mirror » Limit access/use by role?

Viewing 1 replies (of 1 total)
  • Plugin Author dreamsofmatter

    (@stratoponjak)

    Yes a quick fix:

    Replace the wordpress_admin_init-function on line 76 in content-mirror.php with this one:

    function wordpress_admin_init() {
    
    	if ( current_user_can( 'manage_options' ) ) {
    		// add stylesheet to editor
    		add_filter( 'mce_css', array( $this, 'tinyplugin_css' ));
    
    		// add editor plugin and editor button
    		add_filter( 'mce_external_plugins', array( $this, 'tinyplugin_register' ));
    		add_filter( 'mce_buttons_2', array( $this, 'tinyplugin_add_button') , 0);
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Limit access/use by role?’ is closed to new replies.