The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

ABSPATH = blank value ? (1 post)

  1. Cheung Tat Ming
    Posted 6 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 6 years ago by Cheung Tat Ming
  • This topic is not resolved
  • WordPress version: 2.9.1