get_customer(); $value = $customer ? $customer->get_user_id() : false; break; } /** * Let developers know that this is not going to be supported in the future. * * @since 2.0.0 */ _doing_it_wrong($key, __('Product keys should not be accessed directly', 'wp-ultimo'), '2.0.0'); return $value; } /** * Deprecated: get_subscription. * * @deprecated 2.0.0 * * @return \WP_Ultimo\Models\Membership */ public function get_subscription() { _deprecated_function(self::class, '2.0.0', '\WP_Ultimo\Models\Site::get_membership()'); return $this->get_membership(); } }