Look into the WP_Fatal_Error_Handler
class. I see a couple of filters in its display_default_error_template()
method that might be helpful for you:
The entire class is a drop-in, so if you need to you can replace it entirely with your own version, but I think one of those filters—probably wp_php_error_args
—might be what you’re looking for.
Related Posts:
- Change the footer text on the login page
- Check if page parent has certain template
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Why do filters/actions require an argument count?
- How to use return in my custom function instead of echo
- Handling Body class based on Template
- add_action shortcut?
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- WordPress Gravatar filter is removing my custom attributes
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Modify custom field input data before creating a new post
- Override a function defined in wp-includes/comment-template.php
- WordPress redirect redirecting too many times or not at all
- How to have different site identity logos on each page on Astra Theme [closed]
- Must filter functions receive all arguments passed to them?
- How to pass hook variable to function?
- Hook into all password resets in WordPress and get password before hashing?
- WordPress HTML Helper
- How to add custom checkout field in user details mail template
- Assign new post author IF another user in custom field on post transition
- How to make a image-size selected by default in Media upload – WP v3.5
- Remove “Insert from URL” link in Media upload – WP 3.5
- adding a filter to a shortcode?
- How to remove a metabox from menu editor page?
- add_filter to post-gallery and remove all ‘s?
- Can i check if user is doing any ajax request?
- How to overwrite youtube embed?
- Rewriting search and pagination base
- Remove class that has been added by parent theme
- How to Remove a Filter from the Admin List Table?
- How do I know what variables are passed in a filter/action and what their meaning is?
- How To Change The Html of Products filtration sidebar in Woocommerce?
- Insert all post IDs in new database table
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- action hook wp_head higher priority as all other plugins/hooks
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Get_avatar filter?
- Remove an action hook within a Class
- How to pass arguments to add_action() or retrieve return value of called function?
- Is it acceptable to treat a filter like an action?
- Edit incorrect password message WordPress
- Add data attribute to each li in menu
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Why ajax doesn’t work on certain wordpress hooks?
- Print last modified date only on posts
- How to add an arrow to menu items has submenus
- Error in custom php function doesn’t exist
- Return a numerical function value in Customizer controls
- Unique icons next to each WordPress menu item
- Adding function to Genesis genesis_header [closed]
- jQuery code not working when included in functions.php
- Add item to top of menu using a filter in functions.php
- How to make modifications only to certain elements of an HTML string on the server-side?
- Nested “do” and “add” Actions is possible?
- Content filter won’t work
- Are there action hooks for comments?
- How to catch wordpress post ID when it’s published
- Why does the post_type_link hook everything twice?
- Warning: in_array() null given in PHP function
- Upload multiple files in randomly generated folder using wp_upload_bits
- How can I hook into the wp_mail function used by BackWPup?
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- Adding function to child theme’s function.php
- Creating customized php files in theme folder
- Filter wordpress posts without searching the keywords in the post content
- How do I add a function to parent theme
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- remove_action from parent theme using child theme functions.php
- Apply function.php filter only if url not has /amp/
- Adding custom field to product category and show it to shop/category shop page
- Change lost password url to a mailto URL in WordPress
- Save_post – Warning: Cannot modify header information
- Remove span tags from WooCommerce Downloads page
- How to edit post meta data before publishing the post it self wordpress?
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- Custom meta box is not displaying value showing tag as empty
- using filter and hook inside class
- Get original value in save_post action hooka
- Discount in the specific product title using keyword ( Woocoommerce )
- How do I remove an action hook inside a class that is called by another class?
- Reload page with a different shortcode when a user selects from a dropdown
- WordPress Ajax filter: Create two loops for different output styles?
- Getting page / post URL on publish and / or update
- remove_action() not working in page template – Genesis
- Unable to pass arguments to function used in add_action
- How to remove title tag with this filter
- Why transition_post_type hook is called twice for the same post?
- str_replace not preserving whitespace
- Woocommerce Price Text
- Limit Taxonomy Parents
- Display a post based on its metabox selection
- Search box background on a different page template
- Display a list of users with avatar filterable with alphabets
- add query string to all pages after user logged in
- For each loop will not append to the_content hook
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- How to add different menu items on different menus?
- transition_post_status hook, works – but not if the post is new
- Add text below WooCommerce short description if metabox value is true