Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i use a go-script into my plugin for redirecting users and needs into this script access to the plugin options.

The Script looks like this:

<?php 
define('DOING_AJAX', true);
define('WP_USE_THEMES', false);
define('WP_BASE', !defined('WP_BASE') ? dirname(dirname(dirname(dirname(__FILE)))) : WP_BASE);
global $wp, $wp_query, $wp_the_query, $wp_rewrite, $wp_did_header;
require(WP_BASE.'/wp-load.php');
$options = get_option('slugname');
die(print_r($options));

The die always are empty. I'm sure, i have forget something to load into this script. But what?

share|improve this question
1  
You are using the wrong way to AJAX. read wordpress.stackexchange.com/questions/9231/… –  toscho Jun 7 '13 at 7:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.