Change the Register Form submit button text

This code will change the text from Register to Enroll:

1
2
3
4
add_filter('pms_register_form_submit_text', 'pmsc_change_register_submit_text');
function pmsc_change_register_submit_text() {
	return 'Enroll';
}