Skip to content

Commit 90c1775

Browse files
author
Ariel Jolo
committed
Trying to get verbosity of errors
1 parent b038cae commit 90c1775

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

themes/osi/functions.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,14 @@ function osi_wpdc_comment_body( string $comment_body ) {
427427
add_filter( 'wpdc_comment_body', 'osi_wpdc_comment_body', 10, 1 );
428428

429429

430+
// trying to get an idea of what errors are happening
431+
ini_set('display_errors', 1); // Enable error display
432+
ini_set('display_startup_errors', 1); // Show startup errors
433+
error_reporting(E_ALL); // Report all PHP errors
430434

431435
/**
432436
*
433-
* Create a new Supporter CPT.
437+
* Create a new Supporter CPT, based on Contact Forms 7.
434438
*
435439
*/
436440
add_action('wpcf7_before_send_mail', 'save_form_data_to_cpt');

0 commit comments

Comments
 (0)