Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter griffgj

    (@griffgj)

    Good idea, however, I still have a problem. I create a file with the following code only:

    require(‘wp-blog-header.php’);
    $User = get_user_by( ’email’, ‘[email protected]’ );
    echo $User->ID;

    When I put this in the root of my WordPress site, it works. When it’s in the plugins directory it doesn’t. Same file (except I point to the wp-blog-header.php file differently). What’s going on? Any ideas?

Viewing 1 replies (of 1 total)