Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

cornelinux on "hook function for plugin options saved"

$
0
0

I was trying and googling for a while, but maybe I did not use the right keywords.

I am writing a plugin. I have a settings for that saves just fine.

I'd like to add a hook, to be able to either do some php stuff either before or after all my options are saved.

I thought I could find some code like

add_action("options_saved", "my_function");

I found several posts, but they seem do not seem to cover my concern.

Moreover: Would it be possible to pass data to such a hooked function, that will not be saved? I want to test the configuration on the server side and like to pass some user entered test data, that must not be saved.

THanks a lot and kind regards
Cornelius


Viewing all articles
Browse latest Browse all 8245

Trending Articles