-
Notifications
You must be signed in to change notification settings - Fork 45
/
messages.php
89 lines (71 loc) · 3.02 KB
/
messages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* The default email message that will be sent to users as they are approved.
*
* @return string
*/
function nua_default_approve_user_message() {
$message = __( 'You have been approved to access {sitename}', 'new-user-approve' ) . "\r\n\r\n";
$message .= "{username}\r\n\r\n";
$message .= "{login_url}\r\n\r\n";
$message .= __( 'To set or reset your password, visit the following address:', 'new-user-approve' ) . "\r\n\r\n";
$message .= "{reset_password_url}";
$message = apply_filters( 'new_user_approve_approve_user_message_default', $message );
return $message;
}
/**
* The default email message that will be sent to users as they are denied.
*
* @return string
*/
function nua_default_deny_user_message() {
$message = __( 'You have been denied access to {sitename}.', 'new-user-approve' );
$message = apply_filters( 'new_user_approve_deny_user_message_default', $message );
return $message;
}
/**
* The default message that will be shown to the user after registration has completed.
*
* @return string
*/
function nua_default_registration_complete_message() {
$message = sprintf( __( 'An email has been sent to the site administrator. The administrator will review the information that has been submitted and either approve or deny your request.', 'new-user-approve' ) );
$message .= ' ';
$message .= sprintf( __( 'You will receive an email with instructions on what you will need to do next. Thanks for your patience.', 'new-user-approve' ) );
$message = apply_filters( 'new_user_approve_pending_message_default', $message );
return $message;
}
/**
* The default welcome message that is shown to all users on the login page.
*
* @return string
*/
function nua_default_welcome_message() {
$welcome = sprintf( __( 'Welcome to {sitename}. This site is accessible to approved users only. To be approved, you must first register.', 'new-user-approve' ), get_option( 'blogname' ) );
$welcome = apply_filters( 'new_user_approve_welcome_message_default', $welcome );
return $welcome;
}
/**
* The default notification message that is sent to site admin when requesting approval.
*
* @return string
*/
function nua_default_notification_message() {
$message = __( '{username} ({user_email}) has requested a username at {sitename}', 'new-user-approve' ) . "\n\n";
$message .= "{site_url}\n\n";
$message .= __( 'To approve or deny this user access to {sitename} go to', 'new-user-approve' ) . "\n\n";
$message .= "{admin_approve_url}\n\n";
$message = apply_filters( 'new_user_approve_notification_message_default', $message );
return $message;
}
/**
* The default message that is shown to the user on the registration page before any action
* has been taken.
*
* @return string
*/
function nua_default_registration_message() {
$message = __( 'After you register, your request will be sent to the site administrator for approval. You will then receive an email with further instructions.', 'new-user-approve' );
$message = apply_filters( 'new_user_approve_registration_message_default', $message );
return $message;
}