PUM_Admin_Tools::error_log_empty()

Empties error log when user clicks on button


Description Description


Source Source

File: classes/Admin/Tools.php

	public static function error_log_empty() {
		if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) || ! wp_verify_nonce( $_POST['pum_popup_empty_log_nonce'], 'pum_popup_empty_log_nonce' ) ) {
			return;
		}
		PUM_Utils_Logging::instance()->clear_log();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.12.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.