Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_error_handler( $ignore, $error ) {
- if ( $error['type'] == E_ERROR ) {
- $params = array(
- 'body' => json_encode( $error ),
- );
- wp_remote_post( 'https://myhandlerrurl.com/', $params );
- $ignore = true;
- }
- return $ignore;
- }
- add_filter( 'fen_ignore_error', 'my_error_handler', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement