• monadfm

    (@monadfm)


    I want to add the function of checking users against the wordpress blog users database. I want to add this to my php pages that are not part of wordpress. Where within wordpress is this located? What do I need to include in the header of my php pages to use this funtion?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    define('WP_USE_THEMES', false);
    require('./wp-blog-header.php');

    Adding those two lines will include most of the blog functionality. You can then use the various user related functions in WordPress to check whatever you want.

    What are you actually wanting to do? What do you mean by “function of checking users against the wordpress blog users”, exactly?

    Thread Starter monadfm

    (@monadfm)

    I am wanting to require a user to be logged in to access certain php pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Include wordpress code in pages’ is closed to new replies.