Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change the word "Seat(s)" to "student(s)" for Paid Memberships Pro Sponsored Members Add On.
* This will change all instances of seat(s) to student(s) for the Sponsored Members Add On -
* Add the code below to your PMPro Customizations Plugin -
function my_pmpro_change_seat_to_student( $output_text, $input_text, $domain ) {
if ( 'pmpro-sponsored-members' === $domain ) {
$output_text = str_replace( 'seats', 'students', $output_text );
$output_text = str_replace( 'Seats', 'Students', $output_text );
$output_text = str_replace( 'seat', 'student', $output_text );
return $output_text;
add_filter( 'gettext', 'my_pmpro_change_seat_to_student', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment