WP_Paused_Extensions_Storage::get() public WP 5.2.0
Gets the error for an extension, if paused.
{} It's a method of the class: WP_Paused_Extensions_Storage{}
No Hooks.
Return
Array|null
. Error that is stored, or null if the extension is not paused.
Usage
$WP_Paused_Extensions_Storage = new WP_Paused_Extensions_Storage(); $WP_Paused_Extensions_Storage->get( $extension );
- $extension(string) (required)
- Plugin or theme directory name.
Changelog
Since 5.2.0 | Introduced. |
Code of WP_Paused_Extensions_Storage::get() WP Paused Extensions Storage::get WP 5.7
public function get( $extension ) {
if ( ! $this->is_api_loaded() ) {
return null;
}
$paused_extensions = $this->get_all();
if ( ! isset( $paused_extensions[ $extension ] ) ) {
return null;
}
return $paused_extensions[ $extension ];
}