You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: userswp.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Plugin Name: UsersWP
4
4
Plugin URI: https://userswp.io/
5
5
Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form.
class UWP_User_Title_Widget extends WP_Super_Duper {
12
12
13
-
/**
14
-
* Register the user title widget with WordPress.
15
-
*
16
-
*/
17
-
publicfunction__construct() {
18
-
19
-
20
-
$options = array(
21
-
'textdomain' => 'userswp',
22
-
'block-icon' => 'admin-site',
23
-
'block-category'=> 'widgets',
24
-
'block-keywords'=> "['userswp','user']",
25
-
'class_name' => __CLASS__,
26
-
'base_id' => 'uwp_user_title',
27
-
'name' => __('UWP > User Title','userswp'),
28
-
'no_wrap' => true,
29
-
'widget_ops' => array(
30
-
'classname' => 'uwp-user-title',
31
-
'description' => esc_html__('Displays user name.','userswp'),
32
-
),
33
-
'arguments' => array(
34
-
'tag' => array(
35
-
'title' => __('Header Tag:', 'userswp'),
36
-
'desc' => __('Header tag for the user title.', 'userswp'),
37
-
'type' => 'select',
38
-
'options' => array(
39
-
"h1" => "h1",
40
-
"h2" => "h2",
41
-
"h3" => "h3",
42
-
"h4" => "h4",
43
-
"h5" => "h5",
44
-
"h6" => "h6",
45
-
),
46
-
'default' => 'h2',
47
-
'desc_tip' => true,
48
-
),
49
-
'user_id' => array(
50
-
'title' => __('User ID:', 'userswp'),
51
-
'desc' => __('Leave blank to use current user ID or use post_author for current post author ID. For profile page it will take displayed user ID. Input specific user ID for other pages.', 'userswp'),
'description' => esc_html__( 'Displays user name.', 'userswp' ),
32
+
),
33
+
'arguments' => array(
34
+
'tag' => array(
35
+
'title' => __( 'Header Tag:', 'userswp' ),
36
+
'desc' => __( 'Header tag for the user title.', 'userswp' ),
37
+
'type' => 'select',
38
+
'options' => array(
39
+
"h1" => "h1",
40
+
"h2" => "h2",
41
+
"h3" => "h3",
42
+
"h4" => "h4",
43
+
"h5" => "h5",
44
+
"h6" => "h6",
45
+
),
46
+
'default' => 'h2',
47
+
'desc_tip' => true,
48
+
),
49
+
'user_id' => array(
50
+
'title' => __( 'User ID:', 'userswp' ),
51
+
'desc' => __( 'Leave blank to use current user ID or use post_author for current post author ID. For profile page it will take displayed user ID. Input specific user ID for other pages.', 'userswp' ),
0 commit comments