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

      • Your basket is empty.
      • Total: £0.00
      • Checkout
  • Blog
  • Extensions
  • Support
    • Documentation
    • Log a Support Ticket
  • Your Account
    • Register
  • Contact Us
  • Demo

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

Share this:

  • Tweet
  • WhatsApp

Related Articles

Advanced Hooks Customisation Knowledge Base Tickets Last updated: 3rd March 2017

Published by Michael

Mike is the founder and lead developer of KB Support. When he's not working on KB Support, he's generally spending time with his 3 children and following his favourite football team

Posts by Michael Visit Website

Post navigation

Previous

Service Level Settings

Next

Installing Extensions

Article Categories

  • Configuration
    • Advanced
    • Getting Started
  • Developer Docs
    • Constants
    • Hooks
  • Extensions
  • FAQs

Social Links

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

Resources

  • Contact Us
  • KB Support Discount Code
  • KB Support Demo Site
  • Easy Plugin Demo

Sign up to our newsletter!

Subscribe now to receive all the latest news, thoughts and offers from KB Support.
New subscribers will receive 15% off their first purchase.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
© 2021 KB Support. All rights reserved.
  • Blog
  • Shop
  • Support
  • Demo
  • Privacy Policy
  • Discount Code