add a function to submit options.php
Question
I have a form which does
<form method="post" action="options.php">
.........
<input type="submit" class="button-primary" value="<?php _e( 'Save changes', 'bsp_style_settings' ); ?>" />
I have all the register settings/admin_init’s etc. and it all works fine and saves the data to WP_Options part of the database- great !
All I want to do is add an additional function that is also carried out on submit. So simple call to say
function also_do () {
xxxx
}
so this function also executes when save is pressed.
Any suggestions on how to solve this?
0
functions
3 years
2020-06-08T12:10:48-05:00
2020-06-08T12:10:48-05:00 0 Answers
62 views
0
Leave an answer