Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress write all error in log

//You can enable WordPress logging adding this to wp-config.php file
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
Comment

wordpress log errors

// inside wp-config.php
@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'On' );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
define( 'SCRIPT_DEBUG', true );
define('SAVEQUERIES', true);
Comment

error_log wordpress

error_log( print_r( 'Hello World!', true ) );
Comment

error_log wordpress

error_log( 'Hello World!' );
Comment

PREVIOUS NEXT
Code Example
Php :: Laravel 8 query builder, Inner Join Clause 
Php :: php array order by date 
Php :: copy php array to javascript 
Php :: wordpress do shortcode 
Php :: xdebug vscode docker 
Php :: get current user email wordpress 
Php :: func_get_args with keys 
Php :: php str_pad not working 
Php :: php base64 to image 
Php :: laravel delete records of child relations 
Php :: laravel clear table 
Php :: how to take input in php 
Php :: carbon date format 
Php :: laravel remove public from url on shared host 
Php :: bind in pdo 
Php :: delete in wordpress query 
Php :: start php server 
Php :: laravel collection count 
Php :: add column in laravel migration 
Php :: wp_query post count 
Php :: PHP Deprecated: Function create_function() 
Php :: wordpress get user id by email 
Php :: php change date format from d/m/y to y-m-d 
Php :: php current date 
Php :: php artisan down 
Php :: array_search 
Php :: laravel required only one of multiple fields not both 
Php :: CodeIgniter get_where order_by 
Php :: where laravel function 
Php :: strtoupper 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =