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 :: get type of object in php 
Php :: php superglobals 
Php :: this page isn t working http error 500 laravel on server 
Php :: laravel wherin softdelete 
Php :: Display the image on the front end from category taxonomy 
Php :: php get object class 
Php :: set postman global variable header 
Php :: wp plugins action link 
Php :: laravel return view in web.php 
Php :: make full laravel model ( with migration, controller and resource ) 
Php :: how to check user already exists in php 
Php :: doctrine orm get all 
Php :: softdeletes laravel 
Php :: laravel datepicker date format 
Php :: laravel display old value 
Php :: display image in html using php 
Php :: if session is empty laravel 
Php :: __dir__ in php 
Php :: php artisan queue table 
Php :: replace all occurrence char in string php 
Php :: DateTime and Timestamps 
Php :: php camelcase to snake case 
Php :: php how to connect to db using PDO 
Php :: php loops 
Php :: codeigniter update or create 
Php :: moodle get course image 
Php :: how to link image in laravel 
Php :: replace text in string php 
Php :: laravel resource set status code 
Php :: php loop html select option 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =