WP Frontend Profile allows users to edit/view their profile and register/login without going into the dashboard to do so.
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.
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:
See FAQs for how to add our own fields and tabs.
To output the frontend profile feature you can use the following shortcodes in editor:
[wpfep-profile]
[wpfep]
[wpfep-register]
[wpfep-login]
/wp-content/plugins/
directoryAfter 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.
For more information and more extensive documentation about this plugin checkout the WP Frontend Profile Wiki on Github.
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).
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 ); ?>
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.
For the plugin’s changelog, please see the changelog page on GitHub.