-
Notifications
You must be signed in to change notification settings - Fork 20
/
readme.txt
134 lines (94 loc) · 4.24 KB
/
readme.txt
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
=== WP Frontend Profile ===
Contributors: glowlogix, wpmarkuk
Donate link: https://www.glowlogix.com
Tags: profile, users, user meta, register, login
Requires at least: 4.0.1
Tested up to: 6.7
Stable tag: 1.3.8
Requires PHP: 5.2.17
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
WP Frontend Profile allows users to edit/view their profile and register/login without going into the dashboard to do so.
== Description ==
WP Frontend Profile gives you the ability to add a extensible user profile section to the frontend of your WordPress website. By default the plugin adds two tabs to the frontend profile. One of these tabs, titled profile, allows a user to edit their user data including email, first and last names, URL and bio (description). The password tab allows a user to change their password for the site.
= Plugin Extensibility =
As the frontend profile is rendered with tabs you can easily add your own tabs with your own fields to store user meta data. Tabs and fields are added through filters and all the saving of the data is taken care of for you.
You can add the following field types:
* WYSIWYG
* Select
* Multi Select
* Radio
* Text Area
* Checkbox
* Password
* Email
* Text
See FAQs for how to add our own fields and tabs.
= Profile Output =
To output the frontend profile feature you can use the following shortcodes in editor:
* Profile page `[wpfep-profile]`
* Edit profile `[wpfep]`
* Register page `[wpfep-register]`
* Login page `[wpfep-login]`
= Features =
* Added Login Widget
* Addon for Mailchimp
* Added Content Restriction feature for paid members.
== Installation ==
1. Upload the plugin folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
After having installed the plugin:
1. Create a new Page “Profile” for profile and insert shortcode [wpfep-profile]
2. Create a new Page “Edit Profile” for editing profile and insert shortcode [wpfep]
3. Create a new Page “Login” for login form and insert shortcode [wpfep-login]
4. Create a new Page “Register” for registration form and insert shortcode [wpfep-register]
5. Set the Edit Page option from Pages tab on settings page.
== Frequently Asked Questions ==
For more information and more extensive documentation about this plugin checkout the [WP Frontend Profile Wiki](https://github.com/wpmark/wp-frontend-profile/wiki) on Github.
= How do I add my own tab to the profile output? =
Tabs can be added using the `wpfep_tabs` filter provided. Below is an example of how to add a tab after the default Profile and Password tabs.
`
<?php
function wpmark_add_tab( $tabs ) {
/* add our tab to the tabs array */
$tabs[] = array(
'id' => 'wpmark_tab',
'label' => 'Testing',
'tab_class' => 'testing-tab',
'content_class' => 'testing-content',
);
/* return all the tabs */
return $tabs;
}
add_filter( 'wpfep_tabs', 'wpmark_add_tab', 30 );
?>
`
Note here the priority of 30 which means after the Profile tab (10) and the Password tab (20).
= How do I add fields to a tab? =
Fields can be added to a tab using a dynamic filter named `wpfep_fields_$tab_id`. The tab ID is the id of tab as declared when adding the tab (see FAQ above). This means that you can add fields to any tab even the default tabs. Below is an example of how you would add fields to a tab with the ID of `wpmark_tab`:
`
<?php
function wpmark_add_tab_fields( $fields ) {
$fields[] = array(
'id' => 'testing_field',
'label' => 'Testing',
'desc' => 'Just testing.',
'type' => 'text',
'classes' => 'testing',
);
return $fields;
}
add_filter( 'wpfep_fields_wpmark_tab', 'wpmark_add_tab_fields', 10 );
?>
`
= Are there any field IDs I cannot use? =
Yes there are two field IDs reserved which are `user_email` and `user_url`. This is because you should not save new meta data with these keys are they already exist, but not in the `user_meta` table.
== Screenshots ==
1. WP frontend profile edit page.
2. WP frontend profile register page.
3. WP frontend profile login page.
4. WP frontend profile setting area.
5. WP frontend profile tool area.
6. WP frontend profile system status area.
== Changelog ==
For the plugin’s changelog, please see [the changelog page on GitHub](https://github.com/glowlogix/wp-frontend-profile/CHANGELOG.md).