 plugin and all of its hook implementations.

The plugin can be specified either by the plugin object or the plugin
name. If both are specified, they must agree.

Returns the unregistered plugin, or ``None`` if not found.
Nz+one of name or plugin needs to be specifiedz