config; $prevConfig['_fcom_space_id'] = intval($requestData['_fcom_space_id']); $order->config = $prevConfig; $order->save(); }); add_action('fluent_cart/receipt/thank_you/after_header_title', function ($event) { $order = Arr::get($event, 'order'); if (!$order || empty($order->config['_fcom_space_id']) || $order->payment_status !== 'paid') { return; } $spaceId = intval($order->config['_fcom_space_id']); $space = BaseSpace::query()->onlyMain()->find($spaceId); if (!$space) { return; } ?>
type === 'course') {
printf(
/* translators: 1: space name, 2: call to action */
esc_html__('You have successfully joined the %1$s. %2$s', 'fluent-community'),
esc_html($space->title),
'
' . esc_html__('Go to the course', 'fluent-community') . ''
);
} else {
printf(
/* translators: 1: space name, 2: call to action */
esc_html__('You have successfully joined the %1$s. %2$s', 'fluent-community'),
esc_html($space->title),
'
' . esc_html__('Go to the space', 'fluent-community') . ''
);
}
?>