Support » Plugins » globals getting lost

  • If I set global in init

    add_action(‘init’,’twsPasswordsUpdateit’);

    function twsPasswordsUpdateit

    global $error;
    $error =”its no good”;

    then in a front end screen
    global $error;
    print $error;

    the value isn’t there…..

  • The topic ‘globals getting lost’ is closed to new replies.