Wordpress User Extra Field plugin enhances your WordPress installation by allowing to associate extra user profile fields for registered users. Fields can be optionally showed on the register page, account page and more!
Wordpress User Extra Field plugin is also WooCommerce, BuddyPress and WPML compatible!
[wpuef_show_field_value field_id="c2"]Test link[/wpuef_show_field_value]You can also use html code like:
[wpuef_show_field_value field_id="c2"]<img src="https://example.com/example.png" alt="example" /><strong>Test</strong>[/wpuef_show_field_value]
[wpuef_display_image field_id="c2" width="300" height="200"]
$result = wpuef_get_field('c13', 16669); var_dump($result);The result will be:
object(stdClass)#803 (7) { ["label"]=> string(6) "My custom dropdown field" ["field_type"]=> string( 8 ) "dropdown" ["required"]=> bool(false) ["field_options"]=> object(stdClass)#807 (2) { ["options"]=> array(3) { [0]=> object(stdClass)#782 (2) { ["label"]=> string(2) "Label string for option 1" ["checked"]=> bool(false) } [1]=> object(stdClass)#757 (2) { ["label"]=> string(2) "Label string for option 2" ["checked"]=> bool(false) } [2]=> object(stdClass)#758 (2) { ["label"]=> string(2) "Label string for option 3" ["checked"]=> bool(false) } } ["include_blank_option"]=> bool(false) } ["cid"]=> string(2) "c6" ["woocommerce_edit_on_my_account_page"]=> bool(true) ["value"]=> string(1) "1" }To get the specific user selected value, use the “value” variable. Example:
$result = wpuef_get_field('c13', 16669); var_dump($result->value); //Will print the user selected value for that field.
= 15.1 - 01.10.20 = * Fixed an issue with checkbox default value managment = 15.0 - 14.08.20 = * Fixed an issue related to WordPress 5.5 and jQuery = 14.9 - 15.07.20 = * Improved BuddyPress compatibility = 14.8 - 05.05.20 = * Fixed a minor issue related to the default value selection for radio fields = 14.7 - 09.01.20 = * Each form field has now its own id. The format is "wpuef_field_{field_id}". The field container (if any) has the following format "wpuef-row-{field_id}" = 14.6 - 02.12.19 = * Removed the [wpuef] prefix when displaying order extra fields = 14.5 - 23.11.19 = * Minor improvement = 14.4 - 14.10.19 = * Fixed an issue related to the registration form and DiVi Theme = 14.3 - 09.09.19 = * Added option to hide user extra fields are on WooCommerce admin order edit page = 14.2 - 05.09.19 = * Updated date and time picker libraries = 14.1 - 18.04.19 = * Minor bugfix = 14.0 - 20.11.18 = * Added new option to position fields before/after the default fields in the WooCommerce account details and billing/shipping details pages = 13.9 - 08.11.18 = * Fixed an issue that may raise 500 server error = 13.8 - 31.10.18 = * Fixed an issue with file copy to order meta option = 13.7 - 11.10.18 = * Minor bugfix
Vui lòng dùng địa chỉ email để đăng nhập