Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke
Last active January 25, 2020 19:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hlashbrooke/5fec98f84426534f02a7dc656f8f1d5e to your computer and use it in GitHub Desktop.
Save hlashbrooke/5fec98f84426534f02a7dc656f8f1d5e to your computer and use it in GitHub Desktop.
Seriously Simple Speakers: Rename the 'Speakers' label to something else. In this example I have renamed the 'Speakers' to 'Guests' in both the plural and singular instances - you can make those labels anything you want by editing this code and adding it to your theme's functions.php file or a functionality plugin.
<?php
add_filter( 'ssp_speakers_plural_label', 'ssp_speakers_plural_label_custom' );
function ssp_speakers_plural_label_custom ( $label ) {
return 'Guests';
}
add_filter( 'ssp_speakers_single_label', 'ssp_speakers_single_label_custom' );
function ssp_speakers_single_label_custom ( $label ) {
return 'Guest';
}
@DJIO
Copy link

DJIO commented Jan 24, 2020

// Changing the slug: 'speaker' to 'guest'
add_filter( 'ssp_speakers_taxonomy_slug', 'ssp_speakers_slug_custom' );
function ssp_speakers_slug_custom ( $slug ) {
	return 'guest';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment