Forums

AMFPHP and wordpress global variables (2 posts)

  1. greenboy
    Member
    Posted 2 years ago #

    Hi,

    Im using AMFPHP with as3 to get some user variables from wordpress like $user_login, but I always get a null value.

    this is the php code im using:

    <?php
    class Users{
    public function userData() {
    return $user_login;
    }
    }
    ?>

    I put a include "../wp-blog-header.php"; under AMFPHP globals.php but nothing happens

    what can i do?

    i hope you can help me.

    thanks!º

  2. greenboy
    Member
    Posted 2 years ago #

    Im doing some tests and it´s working with

    get_post(); and get_bloginfo();

    but not with get_currentuserinfo();

Topic Closed

This topic has been closed to new replies.

About this Topic