butlerblog
4/21/2016 - 1:18 PM

List of default values for the wpmem_default_text_strings filter.

List of default values for the wpmem_default_text_strings filter.

<?php // Ignore this line.

// A list of defaults for the wpmem_default_text_strings filter.

$defaults = array(
	
	// Login form.
	'login_heading'        => __( 'Existing Users Log In', 'wp-members' ),
	'login_username'       => __( 'Username' ),
	'login_password'       => __( 'Password' ),
	'login_button'         => __( 'Log In' ),
	'remember_me'          => __( 'Remember Me' ),
	'forgot_link_before'   => __( 'Forgot password?', 'wp-members' ) . '&nbsp;',
	'forgot_link'          => __( 'Click here to reset', 'wp-members' ),
	'register_link_before' => __( 'New User?', 'wp-members' ) . '&nbsp;',
	'register_link'        => __( 'Click here to register', 'wp-members' ),
	'username_link_before' => __( 'Forgot username?', 'wp-members' ) . '&nbsp;',
	'username_link'        => __( 'Click here', 'wp-members' ),
	
	// Password change form.
	'pwdchg_heading'       => __( 'Change Password', 'wp-members' ),
	'pwdchg_password1'     => __( 'New password' ),
	'pwdchg_password2'     => __( 'Confirm new password' ),
	'pwdchg_button'        => __( 'Update Password', 'wp-members' ),
	
	// Password reset form.
	'pwdreset_heading'     => __( 'Reset Forgotten Password', 'wp-members' ),
	'pwdreset_username'    => __( 'Username' ),
	'pwdreset_email'       => __( 'Email' ),
	'pwdreset_button'      => __( 'Reset Password' ),
	
	// Retrieve username form.
	'username_heading'     => __( 'Retrieve username', 'wp-members' ),
	'username_email'       => __( 'Email Address', 'wp-members' ),
	'username_button'      => __( 'Retrieve username', 'wp-members' ),
	
	// Register form.
	'register_heading'     => __( 'New User Registration', 'wp-members' ),
	'register_username'    => __( 'Choose a Username', 'wp-members' ),
	'register_rscaptcha'   => __( 'Input the code:', 'wp-members' ),
	'register_tos'         => __( 'Please indicate that you agree to the %s TOS %s', 'wp-members' ),
	'register_clear'       => __( 'Reset Form', 'wp-members' ),
	'register_submit'      => __( 'Register' ),
	'register_req_mark'    => '<span class="req">*</span>',
	'register_required'    => '<span class="req">*</span>' . __( 'Required field', 'wp-members' ),
	
	// User profile update form.
	'profile_heading'      => __( 'Edit Your Information', 'wp-members' ),
	'profile_username'     => __( 'Username' ),
	'profile_submit'       => __( 'Update Profile', 'wp-members' ),
	'profile_upload'       => __( 'Update this file', 'wp-members' ),
	
	// Error messages and dialogs.
	'login_failed_heading' => __( 'Login Failed!', 'wp-members' ),
	'login_failed'         => __( 'You entered an invalid username or password.', 'wp-members' ),
	'login_failed_link'    => __( 'Click here to continue.', 'wp-members' ),
	'pwdchangempty'        => __( 'Password fields cannot be empty', 'wp-members' ),
	'usernamefailed'       => __( 'Sorry, that email address was not found.', 'wp-members' ),
	'usernamesuccess'      => __( 'An email was sent to %s with your username.', 'wp-members' ),
	'reg_empty_field'      => __( 'Sorry, %s is a required field.', 'wp-members' ),
	'reg_valid_email'      => __( 'You must enter a valid email address.', 'wp-members' ),
	'reg_non_alphanumeric' => __( 'The username cannot include non-alphanumeric characters.', 'wp-members' ),
	'reg_empty_username'   => __( 'Sorry, username is a required field', 'wp-members' ),
	'reg_password_match'   => __( 'Passwords did not match.', 'wp-members' ),
	'reg_email_match'      => __( 'Emails did not match.', 'wp-members' ),
	'reg_empty_captcha'    => __( 'You must complete the CAPTCHA form.', 'wp-members' ),
	'reg_invalid_captcha'  => __( 'CAPTCHA was not valid.', 'wp-members' ),
	
	// Links.
	'profile_edit'         => __( 'Edit My Information', 'wp-members' ),
	'profile_password'     => __( 'Change Password', 'wp-members' ),
	'register_status'      => __( 'You are logged in as %s', 'wp-members' ),
	'register_logout'      => __( 'Click to log out.', 'wp-members' ),
	'register_continue'    => __( 'Begin using the site.', 'wp-members' ),
	'login_welcome'        => __( 'You are logged in as %s', 'wp-members' ),
	'login_logout'         => __( 'Click to log out', 'wp-members' ),
	'status_welcome'       => __( 'You are logged in as %s', 'wp-members' ),
	'status_logout'        => __( 'click to log out', 'wp-members' ),
	
	// Widget.
	'sb_status'            => __( 'You are logged in as %s', 'wp-members' ),
	'sb_logout'            => __( 'click here to log out', 'wp-members' ),
	'sb_login_failed'      => __( 'Login Failed!<br />You entered an invalid username or password.', 'wp-members' ),
	'sb_not_logged_in'     => __( 'You are not logged in.', 'wp-members' ),
	'sb_login_username'    => __( 'Username' ),
	'sb_login_password'    => __( 'Password' ),
	'sb_login_button'      => __( 'log in', 'wp-members' ),
	'sb_login_forgot'      => __( 'Forgot?', 'wp-members' ),
	'sb_login_register'    => __( 'Register' ),
	
	// Default Dialogs.
	'restricted_msg'       => __( "This content is restricted to site members.  If you are an existing user, please log in.  New users may register below.", 'wp-members' ),
	'user'                 => __( "Sorry, that username is taken, please try another.", 'wp-members' ),
	'email'                => __( "Sorry, that email address already has an account.<br />Please try another.", 'wp-members' ),
	'success'              => __( "Congratulations! Your registration was successful.<br /><br />You may now log in using the password that was emailed to you.", 'wp-members' ),
	'editsuccess'          => __( "Your information was updated!", 'wp-members' ),
	'pwdchangerr'          => __( "Passwords did not match.<br /><br />Please try again.", 'wp-members' ),
	'pwdchangesuccess'     => __( "Password successfully changed!", 'wp-members' ),
	'pwdreseterr'          => __( "Either the username or email address do not exist in our records.", 'wp-members' ),
	'pwdresetsuccess'      => __( "Password successfully reset!<br /><br />An email containing a new password has been sent to the email address on file for your account.", 'wp-members' ),

); // End of $defaults array.
<?php

add_filter( 'wpmem_default_text_strings', function($text) {
	$text = array(
		'login_heading' => 'Log In to Your Account',
		'register_heading' => 'Register New Account',
	);
	return $text;
});