Support » Plugins and Hacks » IQ Testimonials » Access for Editor Role

Viewing 3 replies - 1 through 3 (of 3 total)
  • I second this request. I need the editor role to be able to approve testimonials

    Plugin Author Roger MacRae

    (@rmac0001)


    I will add this to a future version

    hi there I run on this issue and I come out of my own solution, I did alter the user capability in “iq_testimonials_config_menu” function.

    Instead of:

    function iq_testimonials_config_menu(){
    	if (function_exists('add_menu_page')){
    		add_menu_page('IQ Testimonials', 'IQ Testimonials', '10', "iq_testimonials_admin", "iq_testimonials_admin", get_option('siteurl') . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/images/testimonials.png');
    
    		add_submenu_page('iq_testimonials_admin', 'IQ Testimonials Settings', 'Settings', '10', 'iq_testimonials_settings', 'iq_testimonials_settings');
    
    		add_submenu_page('iq_testimonials_admin', 'IQ Testimonials Help', 'Help', '10', 'iq_testimonials_help', 'iq_testimonials_help');
    	}
    }

    I make it like this:

    function iq_testimonials_config_menu(){
    	if (function_exists('add_menu_page')){
    		add_menu_page('IQ Testimonials', 'IQ Testimonials', '5', "iq_testimonials_admin", "iq_testimonials_admin", get_option('siteurl') . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/images/testimonials.png');
    
    		add_submenu_page('iq_testimonials_admin', 'IQ Testimonials Settings', 'Settings', '5', 'iq_testimonials_settings', 'iq_testimonials_settings');
    
    		add_submenu_page('iq_testimonials_admin', 'IQ Testimonials Help', 'Help', '5', 'iq_testimonials_help', 'iq_testimonials_help');
    	}
    }

    Hope it helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access for Editor Role’ is closed to new replies.