PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.5.4
JetFormBuilder — Dynamic Blocks Form Builder v3.5.4
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / actions-v2 / register-user / messages / user-specific-messages.php
jetformbuilder / modules / actions-v2 / register-user / messages Last commit date
register-user-messages.php 1 year ago user-specific-messages.php 1 year ago
user-specific-messages.php
60 lines
1 <?php
2
3
4 namespace JFB_Modules\Actions_V2\Register_User\Messages;
5
6 use Jet_Form_Builder\Actions\Types\Base;
7 use Jet_Form_Builder\Form_Messages\Actions\Base_Action_Messages;
8 use JFB_Modules\Actions_V2\Register_User\Register_User_Action;
9 use JFB_Modules\Actions_V2\Update_User\Update_User_Action;
10
11 // If this file is called directly, abort.
12 if ( ! defined( 'WPINC' ) ) {
13 die;
14 }
15
16 class User_Specific_Messages extends Base_Action_Messages {
17
18 public function is_supported( Base $action ): bool {
19 $current = get_class( $action );
20
21 return in_array(
22 $current,
23 array(
24 Register_User_Action::class,
25 Update_User_Action::class,
26 ),
27 true
28 );
29 }
30
31 protected function messages(): array {
32 return array(
33 'password_mismatch' => array(
34 'label' => __( 'Passwords mismatch', 'jet-form-builder' ),
35 'value' => 'Passwords don\'t match.',
36 ),
37 'email_exists' => array(
38 'label' => __( 'Email exists', 'jet-form-builder' ),
39 'value' => 'This email address is already used.',
40 ),
41 'sanitize_user' => array(
42 'label' => __( 'Incorrect user login', 'jet-form-builder' ),
43 'value' => 'User login contains not allowed characters.',
44 ),
45 'empty_username' => array(
46 'label' => __( 'Empty user login', 'jet-form-builder' ),
47 'value' => 'Please set user login.',
48 ),
49 'empty_email' => array(
50 'label' => __( 'Empty email', 'jet-form-builder' ),
51 'value' => 'Please set user email.',
52 ),
53 'incorrect_old_password' => array(
54 'label' => __( 'Incorrect old password', 'jet-form-builder' ),
55 'value' => 'The old password you entered is incorrect.',
56 ),
57 );
58 }
59 }
60