WordPress at Your Fingertips
function is not described

WC_Integrations::get_integration() public WC 3.9.0

Return a desired integration.

{} It's a method of the class: WC_Integrations{}

No Hooks.

Return

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.

Code of WC_Integrations::get_integration() WC 5.7.1

public function get_integration( $id ) {
	if ( isset( $this->integrations[ $id ] ) ) {
		return $this->integrations[ $id ];
	}

	return null;
}