Select Page

Error log that uses JavaScript console to display messages

Parameters

  1. error_log – array with errors, messages and other data

Usage

<?php
function my_errors ( $error_log ) {
//your code here
    $error_log[] = $my_data;
    return $error_log;
}

add_filter( 'BeRocket_updater_error_log', 'my_errors' );
?>