WC_Integrations::get_integration( string $id )
Return a desired integration.
Description Description
Parameters Parameters
- $id
-
(Required) The id of the integration to get.
Return Return
(mixed|null) The integration if one is found, otherwise null.
Source Source
File: includes/class-wc-integrations.php
public function get_integration( $id ) {
if ( isset( $this->integrations[ $id ] ) ) {
return $this->integrations[ $id ];
}
return null;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |