HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/zeusxp5/zenoxpressjobs.com/wp-content/plugins/toolbar-extras/includes/items-wpcomments.php
<?php

// includes/items-wpcomments

/**
 * Prevent direct access to this file.
 *
 * @since 1.0.0
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Sorry, you are not allowed to access this file directly.' );
}


add_action( 'admin_bar_menu', 'ddw_tbex_items_wpcomments', 50 );
/**
 * Add sub items to the Comments group.
 *
 * @since 1.4.0
 *
 * @param object $admin_bar Object of Toolbar nodes.
 */
function ddw_tbex_items_wpcomments( $admin_bar ) {

	$admin_bar->add_group(
		array(
			'id'     => 'group-wpcomments-pending',
			'parent' => 'comments',
		)
	);

	$admin_bar->add_node(
		array(
			'id'     => 'tbex-wpcomments-pending',
			'parent' => 'group-wpcomments-pending',
			'title'  => '<strong>' . esc_attr__( 'Pending', 'toolbar-extras' ) . '</strong>',
			'href'   => esc_url( admin_url( 'edit-comments.php?comment_status=moderated' ) ),
			'meta'   => array(
				'target' => '',
				'title'  => esc_attr__( 'For Moderation: Pending Comments', 'toolbar-extras' ),
			)
		)
	);

	$admin_bar->add_node(
		array(
			'id'     => 'tbex-wpcomments-approved',
			'parent' => 'comments',
			'title'  => esc_attr__( 'Approved', 'toolbar-extras' ),
			'href'   => esc_url( admin_url( 'edit-comments.php?comment_status=approved' ) ),
			'meta'   => array(
				'target' => '',
				'title'  => esc_attr__( 'Approved Comments', 'toolbar-extras' ),
			)
		)
	);

	$admin_bar->add_node(
		array(
			'id'     => 'tbex-wpcomments-all',
			'parent' => 'comments',
			'title'  => esc_attr__( 'All Comments', 'toolbar-extras' ),
			'href'   => esc_url( admin_url( 'edit-comments.php?comment_status=all' ) ),
			'meta'   => array(
				'target' => '',
				'title'  => esc_attr__( 'All Comments', 'toolbar-extras' ),
			)
		)
	);

	$admin_bar->add_node(
		array(
			'id'     => 'tbex-wpcomments-spam',
			'parent' => 'comments',
			'title'  => esc_attr__( 'Spam', 'toolbar-extras' ),
			'href'   => esc_url( admin_url( 'edit-comments.php?comment_status=spam' ) ),
			'meta'   => array(
				'target' => '',
				'title'  => esc_attr__( 'Review Spam Comments', 'toolbar-extras' ),
			)
		)
	);

	$admin_bar->add_node(
		array(
			'id'     => 'tbex-wpcomments-trash',
			'parent' => 'comments',
			'title'  => esc_attr__( 'Trash', 'toolbar-extras' ),
			'href'   => esc_url( admin_url( 'edit-comments.php?comment_status=trash' ) ),
			'meta'   => array(
				'target' => '',
				'title'  => esc_attr__( 'Review Trashed Comments', 'toolbar-extras' ),
			)
		)
	);

}  // end function