LLMS_Admin_User_Custom_Fields::__construct()
Constructor
Contents
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.user.custom.fields.php
public function __construct() { // Output custom fields on edit screens. $field_actions = array( 'show_user_profile', 'edit_user_profile', 'user_new_form', ); foreach ( $field_actions as $action ) { add_action( $action, array( $this, 'output_custom_fields' ), 11, 1 ); add_action( $action, array( $this, 'output_instructors_assistant_fields' ), 10, 1 ); } // Allow errors to be output before saving field data. // Save the data if no errors are encountered. add_action( 'user_profile_update_errors', array( $this, 'add_errors' ), 10, 3 ); // Save data when a new user is created. add_action( 'edit_user_created_user', array( $this, 'save' ) ); // Add personal options. add_action( 'personal_options', array( $this, 'output_personal_options' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Custom fields (legacy), are now printed with priority 11 instead of 10. |
4.14.0 | Add personal options hook. |
3.13.0 | Unknown. |
2.7.0 | Introduced. |