WC_Integrations::get_integration
Return a desired integration.
Method of the class: WC_Integrations{}
No Hooks.
Returns
Mixed|null. The integration if one is found, otherwise null.
Usage
$WC_Integrations = new WC_Integrations(); $WC_Integrations->get_integration( $id );
- $id(string) (required)
- The id of the integration to get.
Changelog
| Since 3.9.0 | Introduced. |
WC_Integrations::get_integration() WC Integrations::get integration code WC 10.8.1
public function get_integration( $id ) {
if ( isset( $this->integrations[ $id ] ) ) {
return $this->integrations[ $id ];
}
return null;
}