Menu Close Menu
Menu
  • 0
    • Number of items in cart: 0

      • Your cart is empty.
      • Total: $0.00
      • Checkout
  • Pricing
    • Purchase Options
    • Individual Extensions
  • Support
    • Documentation
    • Log a Support Ticket
  • Your Account
    • Register
  • Blog

Change Global Labels

Change Global Labels

Select your own labels for Tickets and KB Articles

The global labels used throughout KB Support for Ticket, Tickets, KB Article and KB Articles are extremely easy to change if there is a term you would prefer to use for either, or both.

Changing Global Ticket Labels

The global labels, Ticket and Tickets, can be changed by hooking into the kbs_default_tickets_name filter like so:

/**
 * Change the global label for tickets to cases
 *
 * @param    array    $labels    Default labels
 * @return   array    Filtered labels
 */
function mh_kbs_ticket_labels( $labels )    {

	$labels = array(
	   'singular' => __( 'Case', 'your-text-domain' ),
	   'plural'   => __( 'Cases', 'your-text-domain' )
	);

	return $labels;
}
add_filter( 'kbs_default_tickets_name', 'mh_kbs_ticket_labels' );

All references to Ticket and Tickets will now be replaced with Case and Cases.

Changing Global KB Article Labels

The global labels, KB Article and KB Articles, can be changed by hooking into the kbs_default_articles_name filter like so:

/**
 * Change the global label for KB Articles to documents
 *
 * @param    array    $labels    Default labels
 * @return   array    Filtered labels
 */
function mh_kbs_article_labels( $labels )    {

	$labels = array(
	   'singular' => __( 'Document', 'your-text-domain' ),
	   'plural'   => __( 'Documents', 'your-text-domain' )
	);

	return $labels;
}
add_filter( 'kbs_default_articles_name', 'mh_kbs_article_labels' );

All references to KB Article and KB Articles will now be replaced with Document and Documents.


Was this article helpful?

We're working hard to ensure we provide you with useful and relevant documentation to help you get the most out of KB Support.

Please take a moment to let us know if you found this article helpful.

Change Global Labels

The global labels used throughout KB Support for Ticket, Tickets, KB Article and KB Articles are extremely easy to change if there is a term you would prefer to use for either, or both. Changing Global Ticket Labels The global labels, Ticket and Tickets, can be changed by hooking into the kbs_default_tickets_name filter like so: /**…
KB Article rating: 5.0 based on 1 ratings
Advanced Hooks Customisation Knowledge Base Tickets Last updated: 03/03/2017

Published by Cristian Raiber

Posts by Cristian Raiber

Post navigation

Previous

Service Level Settings

Next

Installing Extensions

Contact Details

  • Follow us on Twitter
  • Like us on Facebook
  • Fork us on GitHub

Developer Resources

Plugin Boilerplate

Trello Board

GitHub Repository

Ratings & Satisfaction Docs

  • Configuring Ratings and Satisfaction
  • Advanced Settings

Email Support Docs

  • Plugin Requirements
  • Configuring Email Support
  • Creating New Tickets
  • Replying to Closed Tickets
  • Anonymous Replies in Email Support
  • HTML Emails Tags
  • Email Commands
  • Defining IMAP Flags

KBS REST API Docs

  • Using the REST API
  • Tickets REST API Route
  • Replies REST API Route
  • Articles REST API Route
  • Agents REST API Route
  • Customers REST API Route
  • Companies REST API Route
  • Forms REST API Route
  • Form Fields REST API Route
  • Ticket Categories REST API Route
  • Ticket Departments REST API Route
  • Ticket Source REST API Route

Article Categories

  • Configuration
    • Advanced
    • Getting Started
  • Developer Docs
    • Constants
    • Hooks
  • Extensions
  • FAQs
© 2023 KB Support. All rights reserved.
  • Blog
  • Shop
  • Support
  • Privacy Policy
  • Discount Code