redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

How to hook into Redux after setting saved

Open wpinsite opened this issue 12 years ago • 3 comments

Hi,

I would like to run custom function that is located in my theme "functions.php" file. I would like to hook into this function every time a user presses the "Save Settings" button with the Redux Framework.

Is this possible?

My function is called "wmpl_save_config_file();"

Thanks

wpinsite avatar Mar 11 '14 22:03 wpinsite

Use an action hook, like so.

add_action ('redux/options/redux_demo/saved', 'wmpl_save_config_file');

Make sure you replace redux_demo with whatever your opt_name is.

kprovance avatar Mar 11 '14 22:03 kprovance

Thank you very much for the prompt reply. Exactly what I was after.

Love the framework

wpinsite avatar Mar 11 '14 22:03 wpinsite

Glad you love it! Please post a review: http://wordpress.org/support/view/plugin-reviews/redux-framework

Also please like us on Facebook: https://www.facebook.com/ReduxFramework

dovy avatar Mar 11 '14 23:03 dovy