Jump to content

akarimov

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

akarimov's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. get_footer() statement is in multiple place in that code, and it works fine. When I try to put get_footer() under echo "Usern ... her one." line - it gives me an error. and yes, this is for wordpress I need get_footer() to run under first condition, and it okay under second condition.
  2. I got the following code. I need to insert a "get_footer();" tag, but the code won't run. How do I code insert it properly? $random_password = wp_generate_password( 12, false ); $status = wp_create_user( $username, $random_password, $email ); if ( is_wp_error($status) ) echo "Username already exists. Please try another one."; ---------------------------------INSERT get_footer(); HERE.------------------------------------------- else { $from = get_option('admin_email'); $headers = 'From: '.$from . "\r\n"; $subject = "Registration successful"; $msg = "Registration successful.\nYour login details\nUsername: $username\nPassword: $random_password"; wp_mail( $email, $subject, $msg, $headers ); echo "Please check your email for login details."; get_footer(); }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.