nxs_toolbar_link_to_mypage

The NextScripts: Social Networks Auto-Poster nxs toolbar link to mypage function.

Description

nxs_toolbar_link_to_mypage( $wp_admin_bar ); 

Parameters (1)

0. $wp_admin_bar
The wp admin bar.

Usage

  1. if ( !function_exists( 'nxs_toolbar_link_to_mypage' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/inc/nxs_functions_adv.php'; 
  3.  
  4. // The wp admin bar. 
  5. $wp_admin_bar = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxs_toolbar_link_to_mypage($wp_admin_bar); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/nxs_functions_adv.php  
  1. function nxs_toolbar_link_to_mypage( $wp_admin_bar ) { 
  2. $args = array( 
  3. 'id' => 'snap-post',  
  4. 'title' => '<span style="font-weight:bold; color:#2ecc2e;">{SNAP} </span> New Post to Social Networks',  
  5. 'parent' => 'new-content',  
  6. 'href' => '#',  
  7. 'meta' => array( 'class' => 'my-toolbar-page', 'onclick' => 'nxs_showNewPostFrom();return false;' ) 
  8. ); 
  9. $wp_admin_bar->add_node( $args );