Support » Plugin: Theme My Login » Custom profile template not saved

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    This will not work properly until 6.3 is released and all actions actually have a separate “page”. Until then, you can load a specific template using a filter:

    function tml_template_include( $template ) {
    	if ( is_page( 'update-profile' ) ) {
    		if ( $profile_template = locate_template( 'update-profile.php' ) )
    			return $profile_template;
    	}
    	return $template;
    }
    add_action( 'template_include', 'tml_template_include' );

    I got

    reset() [function.reset]: Passed variable is not an array or object in .../update-profile.php on line 7

    which is

    $user_role = reset( $profileuser->roles );

    look like variable not loaded? If i remove that line, just got a blank page.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Make sure you have the opening lines from the original profille-form.php… I believe the $profileuser variable is set there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom profile template not saved’ is closed to new replies.