Viewing 1 replies (of 1 total)
  • Plugin Author Toby Cryns (@themightymo)

    (@themightymo)

    Kate,

    Unfortunately, this plugin will not support that (it didn’t occur to me that non-admins would ever want to see the template info). Just curious – Why do you want non-admins to see the template info?

    For a fix, you could delete the plugin and just add the following to functions.php:

    
    add_action('admin_bar_menu', 's9_admin_bar_links', 500);
    function s9_admin_bar_links() {
    	global $wp_admin_bar, $template;
    	
    	// clean up path
    	$template_name = substr( $template, ( strpos( $template, 'wp-content/') + 10 ) );
    	
    	// Add as a parent menu
    	$wp_admin_bar->add_menu( array(
    		'title' => $template_name,
    		'href' => false,
    		'id' => 's9_links',
    		'href' => false
    	));
    }
    

    Is this helpful?

    Toby

Viewing 1 replies (of 1 total)
  • The topic ‘Capability for plugin?’ is closed to new replies.