Basically I’m asking:
function custom_toolbar() {
global $wp_admin_bar;
$args = array(
'id' => 'report_button',
'title' => __( 'Report a Bug', 'text_domain' ),
'href' => 'HOW TO GET A DYNAMIC LINK IN HERE',
'meta' => array(
'target' => '_blank',
),
);
$wp_admin_bar->add_menu( $args );
}
add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );