LLMS_Helper_Admin_Add_Ons::handle_actions()
Handle form submission actions
Return Return
(void)
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-admin-add-ons.php
public function handle_actions() { // License key addition & removal. if ( ! llms_verify_nonce( '_llms_manage_keys_nonce', 'llms_manage_keys' ) ) { return; } $flush = false; if ( isset( $_POST['llms_activate_keys'] ) && ! empty( $_POST['llms_add_keys'] ) ) { $flush = true; $this->handle_activations(); } elseif ( isset( $_POST['llms_deactivate_keys'] ) && ! empty( $_POST['llms_remove_keys'] ) ) { $flush = true; $this->handle_deactivations(); } if ( $flush ) { llms_helper_flush_cache(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.1 | Flush cached addon and package update data when adding or removing keys. |
3.2.0 | Let the LifterLMS Core output flashed notices |
3.0.0 | Introduced. |