Add Label to Password Recovery Input Field
-
hello,
i’m trying to add <label> to input filed inside password recovery page,
i have tried overriding the password-reset.php file but as UM is generating this field from predefiend_fields Function inside class-buildin.php file i think i have to override the field attr inside my theme function.pardon my code but this is what i got so far:
function set_predefined_fields(){ global $ultimatemember; if ( !isset( $ultimatemember->query ) || ! method_exists( $ultimatemember->query, 'get_roles' ) ) { return; } else { //die('Method loaded!'); } $um_roles = $ultimatemember->query->get_roles( false, array('admin') ); $profile_privacy = apply_filters('um_profile_privacy_options', array( __('Everyone','ultimate-member'), __('Only me','ultimate-member') ) ); $this->predefined_fields = array( 'username_b' => array( 'title' => 'tst', 'metakey' => 'username_b', 'type' => 'text', 'placeholder' => 'test', 'required' => 1, 'public' => 1, 'editable' => 0, 'private_use' => true, ), ); $this->predefined_fields = apply_filters('um_predefined_fields_hook', $this->predefined_fields ); }
can you guys help me complete this?
my goal is to recreate a .um-field box with label and etc… like registration or login form.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Add Label to Password Recovery Input Field’ is closed to new replies.