function create_log_output_box() { $log = new Wdgpo_Logger(); echo '<a href="#log" id="wdgpo-toggle_log" data-off_label="' . esc_attr('Hide log', 'wdgpo') . '">' . __('Show log', 'wdgpo') . '</a>'; echo ' | '; echo '<a href="#clear-log" id="wdgpo-clear_log">' . __('Clear log', 'wdgpo') . '</a>'; echo '<div id="wdgpo-log_container" style="display:none">' . $log->get_log_string() . '</div>'; }
function json_gplus_clear_log() { $log = new Wdgpo_Logger(); $log->clear(); die; }