Customizing Form Headers

Change the design and contents of UPME form headers.

These filters lets you change the design or contents of login, registration and profile forms for catering custom requirements of your site. These features requires UPME version 2.0.19 or upwards.

Customize the Design of Login Header

login_design

Filter

– upme_login_head

Description

– Customize the design and contents of header section of login form.

Parameters

– Current header HTML, Various parameters(Currently empty array)

Usage
add_filter( 'upme_login_head', 'upme_login_head_display', 10 ,2);
function upme_login_head_display($display,$params){
	global $upme;

	return '<div class="upme-head" style="height:200px;background-image:url(http://antzfxway.com/wp-content/uploads/2010/08/Aurora_thin.jpg);">
				<div style="margin:40px 0;text-align:center">
					<div style="color:#fff !important;" class="upme-field-name upme-field-name-wide login-heading" id="login-heading-1">Sign in to your UPME Account 
					 </div>
				</div>

				<div class="upme-clear"></div></div>';

	return '<div class="upme-head">
				<div class="upme-left">
					<div class="upme-field-name upme-field-name-wide login-heading" id="login-heading-1">Login
					 </div>
				</div>
				<div class="upme-right">Get free membership for instant access</div>
				<div class="upme-clear"></div></div>';
}

Customize the Title of Login Form

Filter

– upme_login_form_title

Description

– Customize the Title of Login Form

Parameters

– Current title, Various parameters(Currently empty array)

Usage
add_filter( 'upme_login_form_title', 'upme_login_form_title', 10, 2);
function upme_login_form_title($title,$params){
        $title = __('SignIn to UPME','upmehooks');
	return $title;
}

Customize the Title of Login Form Based on Form Name

Filter

– upme_login_form_title

Description

– Customize the title of Login form based form name specified through shortcode attributes.

Parameters

– Current title, Various parameters(Currently empty array)

Usage
add_filter( 'upme_login_form_title', 'upme_login_form_title', 10, 2);
function upme_login_form_title($title,$params){
        global $upme;
        if($upme->login_form_name == 'Your Login Form Name'){
            $title = __('SignIn to UPME','upmehooks');
        }        
	return $title;
}

Customize the Design and Contents of Registration Header

Filter

– upme_registration_head

Description

– Customize the header of Registration form based form name specified through shortcode attributes. This example shows you how to show different headers based on form name. If needed, you can use this without form name filters.

Parameters

– Current header HTML, Various parameters(Currently empty array)

Usage
add_filter( 'upme_registration_head', 'upme_registration_head_display', 10 ,2);
function upme_registration_head_display($display,$params){
    global $upme;

    if($upme->registration_form_name == 'subscriber_registration'){
        $display = '<div>';
        $display .= '<div>Signup for UPME Subscription for Lifetime</div>';
        $display .= '<div></div>';

        $display .= '<div></div>

                    </div>';
    }else{
        $display = '<div>';
        $display .= '<div>Signup for UPME Account for Free</div>';
        $display .= '<div></div>';

        $display .= '<div></div>

                    </div>';
    }
    return $display;
}

Get your copy of User Profiles Made Easy on CodeCanyon