pduobert / wordpress-job-manager

Automatically exported from code.google.com/p/wordpress-job-manager
0 stars 1 forks source link

wp_admin_bar could be added #406

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Could you please add the following to your plugin, just makes life a little 
easier :-) Like your plugin btw, really well coded and follows the WP way of 
doing things, bar a few hacks! Which you can never get over.

hooks.php

//Add the admin bar quicklink
add_action('admin_bar_menu','jobman_admin_bar_setup');

admin.php

function jobman_admin_bar_setup() {

    global $wp_admin_bar;

    $element = array('title' => 'Add Job',
                     'href' => admin_url('admin.php?page=jobman-add-job'),
                     'parent' => 'new-content'
                     );

    $wp_admin_bar->add_menu($element);

}

Best regards,

Jonathan

Original issue reported on code.google.com by jonathan...@googlemail.com on 5 Jan 2012 at 4:23

GoogleCodeExporter commented 8 years ago
Sorry instead of Add Job, should just be Job

Original comment by jonathan...@googlemail.com on 5 Jan 2012 at 4:32