Menu Close Menu
Menu
  • Themes
  • Extensions
  • Showcase
  • Support
    • Documentation
    • Open Support Ticket
    • Terms & Conditions
  • Blog
  • Account
    • Number of items in basket: 0

      • Your basket is empty.
      • Total: £0.00
      • Checkout

How To Change The Appearance Label

How To Change The Appearance Label

You may want to change the label used to display appearances, for example, an international club may want to change APPS to CAPS.

To alter the label used to display player appearances simply add the following snippet to your themes functions.php file:

function custom_appearances_labels( $appearances ) {
	$appearances = array(
		'appearances' => _x( 'CAPS', 'Games Played (Appearances)', 'your-theme' )
	);
	return $appearances;
}
add_filter( 'wpcm_get_appearance_labels', 'custom_appearances_labels', 10, 1 );
function custom_appearances_names( $appearances ) {
	$appearances = array(
		'appearances' => _x( 'Caps', 'Games Played (Appearances)', 'your-theme' )
	);
	return $appearances;
}
add_filter( 'wpcm_get_appearance_labels', 'custom_appearances_names', 10, 1 );
4th October 2020

Post navigation

Previous

How To Disable Default Styles

Next

How To Change Date Or Time Format

Docs Categories

  • Clubs (4)
  • Getting Started (4)
  • League Tables & Rosters (3)
  • Matches (6)
  • Players & Staff (9)
  • Plugin Settings (11)
  • Shortcodes (8)
  • Snippets (4)
  • Theming & Extending (3)
  • Widgets (6)

Popular Articles

  • Third Party Theme Compatibility
  • Match List Shortcode
  • League Table Shortcode
  • Managing Clubs
  • Match Opponents Shortcode
  • Extensions
  • Themes
  • Showcase
  • Terms
  • Documentation
  • Support
  • Support Policy
  • Blog

Be the first to hear about updates and new releases by subscribing to our newsletter.

We won't ever spam you and your email address is secure.
© 2014-20 WP Club Manager | Manage your sports club website