Home / Admin / Admin Bar – Updates
Duplicate Snippet

Embed Snippet on Your Site

Admin Bar – Updates

Show updates in Admin Bar

Code Preview
php
<?php
function add_updates_admin_bar_menu() {
    global $wp_admin_bar;
    $wp_admin_bar->add_menu( array(
        'id'    => 'updates',
        'title' => 'Updates',
        'href'  => admin_url( 'update-core.php' ),
        'parent' => 'top-secondary',
    ) );
}
add_action( 'wp_before_admin_bar_render', 'add_updates_admin_bar_menu' );

Comments

Add a Comment