Tribe__Tickets__Attendee_Registration__View::get_cart_provider( string $provider )
Get the cart provider class/object.
Contents
Parameters
- $provider
-
(string) (Required) A string indicating the desired provider.
Return
(boolean|object) The provider object or boolean false if none found.
Source
File: src/Tribe/Attendee_Registration/View.php
public function get_cart_provider( $provider ) {
if ( empty( $provider ) ) {
return false;
}
$provider_obj = false;
/**
* Allow providers to include themselves if they are not in the above.
*
* @since 4.11.0
*
* @return boolean|object The provider object or boolean false if none found above.
* @param string $provider A string indicating the desired provider.
*/
$provider_obj = apply_filters( 'tribe_attendee_registration_cart_provider', $provider_obj, $provider );
return $provider_obj;
}
Changelog
| Version | Description |
|---|---|
| 4.12.3 | Check if provider is a proper object and is active. |
| 4.11.0 | Introduced. |