Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress add button to admin bar

add_action('admin_bar_menu', 'add_item', 100);

function add_item( $admin_bar ){
  global $pagenow;
  $admin_bar->add_menu( array( 'id'=>'download_counter','title'=>'PDF's Downloaded Today - 1000' ) );
}
 
PREVIOUS NEXT
Tagged: #wordpress #add #button #admin #bar
ADD COMMENT
Topic
Name
9+6 =