forked from lewismcarey/User-Field-ACF-Add-on
-
Notifications
You must be signed in to change notification settings - Fork 0
adampope/User-Field-ACF-Add-on
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
=== Advanced Custom Fields - Users Multi-Select Field add-on === Contributors: by @lewismcarey (@forepoint) update nicename to displayname - jeradin translation issue resolved - eonlova Tags: acf, acf add-on, users, custom field, user field Requires at least: 3.0 Tested up to: 3.3.1 Stable tag: 0.0 === Summary === * Generates a user multi-select field filtered by role. * Stores user data such as name, email and url. * Associate pages and posts with specific users. === Description === This is an add-on for the Advanced Custom Fields Wordpress plugin that allows you to add a User field type. The user field provides the ability to select from a list of your WordPress users, which can be filtered by role. Similar to the post_object type you can allow to be null or select single or multiple values. The user data stored is an array consisting of the user ID, first name, last name, nice name, display name. email, url, date registered and description. === Installation === * Download or clone the User-Field-ACF-Add-on repo to your theme: https://github.com/lewismcarey/User-Field-ACF-Add-on/blob/master/users_field.php * Register the field - register_field($name, $path) if(function_exists('register_field')) { // wrap your register field functions in this to prevent your site breaking on an update to the ACF plugin via @shaunbent register_field(‘Users_field', dirname(__File__) . '/your-ACF-sub-directory/users_field.php'); } === Data Returned === + KEY ++ DESCRIPTION + ID User ID user_firstname First Name user_lastname Last Name nickname Nick name user_nicename Nice name display_name .Display Name user_email Email Address user_url Web Address user_registered Date Registered user_description Description === Issues === Report any issues or feature requests https://github.com/lewismcarey/User-Field-ACF-Add-on/issues
About
User Field Add on for Advanced Custom Fields
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%