wp_get_plugin_error ( $plugin )
- (string) plugin Path to the plugin file relative to the plugins directory.
- (array|bool) Array of error information as returned by `error_get_last()`, or false if none was recorded.
- Introduced in WordPress: 5.2.0
- Deprecated in WordPress: —
Gets the error that was recorded for a paused plugin.