WordPress.org

Ready to get started?Download WordPress

Forums

ABSPATH = blank value ? (1 post)

  1. Cheung Tat Ming
    Member
    Posted 4 years ago #

    I would write a new wp plug-in
    I have two files named a.php and b.php
    a.php is the core that i have registered in wordpress plug-in page ,and every things work fine.

    in a.php, i need open b.php in a new window, and i also need require admin.php to call the $wpdb function.

    It error on
    require_once(ABSPATH . '/wp-admin/includes/admin.php');

    After i echo the ABSPATH , it is blank.
    Should need to call any function to preserve the global variable?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Cheung Tat Ming
  • This topic is not resolved
  • WordPress version: 2.9.1

Tags