Created
May 28, 2020 08:09
-
-
Save alokstha1/4bdec869dd8d783823581a93276ee21c to your computer and use it in GitHub Desktop.
Findout any plugin error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function tl_save_error() { | |
update_option( 'plugin_error', ob_get_contents() ); | |
} | |
add_action( 'activated_plugin', 'tl_save_error' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment