wp_get_plugin_error() – Gets the error that was recorded for a paused plugin.

You appear to be a bot. Output may be restricted

Description

Gets the error that was recorded for a paused plugin.

Usage

$array|false = wp_get_plugin_error( $plugin );

Parameters

$plugin
( string ) required – Path to the plugin file relative to the plugins directory.

Returns

array|false Array of error information as returned by `error_get_last()`, or false if none was recorded.

Source

File name: wordpress/wp-admin/includes/plugin.php
Lines:

1 to 13 of 13
function wp_get_plugin_error( $plugin ) {
  if ( ! isset( $GLOBALS['_paused_plugins'] ) ) {
    return false;
  }

  list( $plugin ) = explode( '/', $plugin );

  if ( ! array_key_exists( $plugin, $GLOBALS['_paused_plugins'] ) ) {
    return false;
  }

  return $GLOBALS['_paused_plugins'][ $plugin ];
}
 

 View on GitHub View on Trac