update and save plugin settings once daily

How can i auto click ‘save settings’ button in my plugin automatically once daily

this is the rendering of the button in my settings page:

echo ‘<form id=”‘ . $this->_settings_key . ‘_form” method=”post” action=”options.php”>’;
settings_fields($this->_settings_key);
//do_settings_sections($this->_settings_key);
$this->render_settings_sections($this->_settings_key);
echo ‘<div class=”buttons”>’;
submit_button(__(‘Save Changes’, $this->_textdomain),
‘primary’,
‘submit’,
false);
submit_button(__(‘Save and Update Exchange Rates’, $this->_textdomain),
‘secondary’,
$this->_settings_key . ‘[update_exchange_rates_button]’,
false);
echo ‘</div>’;
echo ‘</form>’;

i need the ‘Save and Update Exchange Rates’ button to be clicked once a day

tenx

Read more here:: update and save plugin settings once daily

Leave a Reply

Your email address will not be published. Required fields are marked *