WordPress script context (2 posts)

  1. are79
    Posted 8 years ago #

    I want to create a separate script to serve requests from some external server. I want this script to have wordpress blog context. I need to access database using wpdb and to read/write options. What is a proper way to do this?

  2. Kafkaesqui

    Posted 8 years ago #

    "What is a proper way to do this?"

    That all depends. But see:


    Including wp-blog-header.php makes all WordPress functions and global vars available. Under some conditions you may only need (or want) to include wp-config.php.

Topic Closed

This topic has been closed to new replies.

About this Topic