• Hello

    I am writing a small plugin for my wp site, during which a new window is opened. The url to this new page is defined as :
    plugin_dir_url( __FILE__ ) . 'order-details.php',
    The page opens correctly, but it doesn’t seem to have any access to wordpress files or library – for instance, at the top of the order-details.php page i have:

    if (!is_admin()) {
        die('not admin');
    }

    …and am getting a ‘call to undefined function’ error in my new window. Do i need to include certain core files? If so, which ones?

  • The topic ‘Plugin / new window – accessing wp library files and functions’ is closed to new replies.