dev-master
9999999-dev https://github.com/Seravo/wp-frontend-profileAllow user editing in frontend.
GPLv3
by Onni Hakala
wordpress user settings profile frontend
Allow user editing in frontend.
Contributors: wpmarkuk,onnimonni
Donate link: http://markwilkinson.me/saythanks
Tags: profile, users, user meta
Requires at least: 4.0.1
Tested up to: 4.0.1
Stable tag: 0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html, (*1)
WP Front End Profile allows users to edit their profile without going into the dashboard to do so., (*2)
WP Front End Profile give you the ability to add a extensible user profile section to the front end of your WordPress website. By default the plugin adds two tabs to the front end profile. One of these 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., (*3)
As the front end 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., (*4)
You can add the following field types:, (*5)
See FAQs for how to add our own fields and tabs., (*6)
To output the front end profile you can use the following function in your template files:, (*7)
wpfep_show_profile();
/wp-content/plugins/
directory<?php wpfep_show_profile(); ?>
in your templates where you want the front end profile to displayTabs 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., (*8)
'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)., (*9)
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
:, (*10)
'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., (*11)
Allow user editing in frontend.
GPLv3
wordpress user settings profile frontend