'addurilka', 'title' => __('ADDURILKA', 'wp-ya-addurl'), 'meta' => array( 'class' => 'addurilka', 'target' => '_blank', 'title' => __('Add url in search engine', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); $args = array( 'id' => 'addurlcheck', 'title' => __('Check link', 'wp-ya-addurl'), 'href' => $linkforcheckyandex, 'parent' => 'addurilka', 'meta' => array( 'class' => 'addurlcheck', 'target' => '_blank', 'title' => __('Checking the links to indexing', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); $args = array( 'id' => 'yandexurlcheck', 'title' => __('to Yandex', 'wp-ya-addurl'), 'href' => $linkforcheckyandex, 'parent' => 'addurlcheck', 'meta' => array( 'class' => 'yandexurlcheck', 'target' => '_blank', 'title' => __('Checking the links to indexing in Yandex', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); $args = array( 'id' => 'googleurlcheck', 'title' => __('to Google', 'wp-ya-addurl'), 'href' => $linkforcheckgoogle, 'parent' => 'addurlcheck', 'meta' => array( 'class' => 'googleurlcheck', 'target' => '_blank', 'title' => __('Checking the links to indexing in Google', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); $args = array( 'id' => 'addurlsent', 'title' => __('To send a link', 'wp-ya-addurl'), 'href' => $linkforcheckyandex, 'parent' => 'addurilka', 'meta' => array( 'class' => 'addurlsent', 'target' => '_blank', 'title' => __('Send the links in search engine', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); $args = array( 'id' => 'yandexaddurlsent', 'title' => __('to Yandex', 'wp-ya-addurl'), 'href' => $linkforsenttoyandex, 'parent' => 'addurlsent', 'meta' => array( 'class' => 'yandexaddurlsent', 'target' => '_blank', 'title' => __('Send this page to Yandex.Webmaster', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); $args = array( 'id' => 'googleaddurlsent', 'title' => __('to Google', 'wp-ya-addurl'), 'href' => $linkforsenttogoogle, 'parent' => 'addurlsent', 'meta' => array( 'class' => 'googleaddurlsent', 'target' => '_blank', 'title' => __('Send this page to Google', 'wp-ya-addurl') ) ); $wp_ya_addurl_admin_bar->add_node($args); } add_action('admin_bar_menu', 'wp_ya_addurl', 999);