Last active
January 25, 2020 19:20
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
commented
Jan 24, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment