WordPress.org

Support

Support » Plugins and Hacks » MailPoet Newsletters » [Resolved] Adding link to ' New' drop down

[Resolved] Adding link to ' New' drop down

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Add this code to your theme functions.php file:

    function wysija_add_admin_bar_link(){
    	global $wp_admin_bar;
    	$wp_admin_bar->add_menu(
    		array(
    			'parent' => 'new-content',
    			'id' => 'new_newsletter',
    			'title' => __('Newsletter'),
    			'href' => admin_url( 'admin.php?page=wysija_campaigns&action=add')
    		)
    	);
    }
    add_action('wp_before_admin_bar_render', 'wysija_add_admin_bar_link');

    Or you can even create plugin from it if you want to have option to enable/disable it.

    Thanks for that, is some one able to provide this as a plugin, my coding skills are minimal and I hate to go into places where I can screw thing up!
    Seems like this should be built in for the next upgrade?

    Hello Don46,

    Here you go:
    http://wysija.com/screenshots/wysija-newsletters-addon-admin-bar-button.zip

    Check the code, and compare it to this one above. Now you see how simple is to create a plugin? 🙂

    If you want this as a Wysija default feature, add this as idea here:
    http://wysija.uservoice.com/forums/150107-feature-request

    And wait until enough users will vote on it.

    Ami.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Adding link to ' New' drop down’ is closed to new replies.
Skip to toolbar