Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gekigangaa

    (@gekigangaa)

    I just tried again today and it seems my add_option now works. But my redirect still isn’t firing… does the wp_redirect function allow for redirecting to offsite locations?

    Thread Starter gekigangaa

    (@gekigangaa)

    Well I’m trying to use it to issue a redirect with a header('Location: '.$url) call, but I was testing it earlier by using a add_option('test', 5); and seeing if it showed up in the options table.

    Thread Starter gekigangaa

    (@gekigangaa)

    I’m not sure if this will help in narrowing things down, but my main file is snips-tool.php in the snips-tool subdirectory of my plugins folder. Currently I have my action hook written (within a class) in the form:

    add_action('activate_snips-tool/snips-tool.php', array(&$this, 'activate'));

    Other forms tried:
    register_activation_hook(__FILE__, array(&$this, 'activate'));

    Outside of my class:
    register_activation_hook(__FILE__, 'activate');
    add_action('activate_snips-tool/snips-tool.php', 'activate');

    Please, any help would be very much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)