• Resolved David Gard

    (@duck_boy)


    Hey all,

    I have a new plugin which for some reason is only redirecting to ‘/admin-post.php’ when I click ‘Save’, as opposed to back to my plugin options page.

    I’ve ensured everything I can think of is correct, but just wondering if anyone has some tips as to what I can check?

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter David Gard

    (@duck_boy)

    Nevermind, sorted it – it was the call to the ‘on_save_changes’ function that was wrong –

    add_action('admin_post_on_save_changes', array(&$this, 'on_save_changes')); should have been add_action('admin_post_save_page_numbers_options', array(&$this, 'on_save_changes'));

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin directed to blank page on save’ is closed to new replies.