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
if ( !function_exists( 'nxs_toolbar_link_to_mypage' ) ) { require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/inc/nxs_functions_adv.php'; } // The wp admin bar. $wp_admin_bar = null; // NOTICE! Understand what this does before running. $result = nxs_toolbar_link_to_mypage($wp_admin_bar);
Defined (1)
The function is defined in the following location(s).
- /inc/nxs_functions_adv.php
- function nxs_toolbar_link_to_mypage( $wp_admin_bar ) {
- $args = array(
- 'id' => 'snap-post',
- 'title' => '<span style="font-weight:bold; color:#2ecc2e;">{SNAP} </span> New Post to Social Networks',
- 'parent' => 'new-content',
- 'href' => '#',
- 'meta' => array( 'class' => 'my-toolbar-page', 'onclick' => 'nxs_showNewPostFrom();return false;' )
- );
- $wp_admin_bar->add_node( $args );
- }