wpcf7_stripe_add_flamingo_inbound_message_params()
Adds Stripe-related meta data to Flamingo Inbound Message parameters.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wpcf7_stripe_add_flamingo_inbound_message_params( $args );
- $args (обязательный)
- -
Код wpcf7_stripe_add_flamingo_inbound_message_params() wpcf7 stripe add flamingo inbound message params CF7 5.9.8
function wpcf7_stripe_add_flamingo_inbound_message_params( $args ) { $submission = WPCF7_Submission::get_instance(); $pi_id = $submission->pull( 'payment_intent' ); if ( empty( $pi_id ) ) { return $args; } $pi_link = wpcf7_stripe_get_payment_link( $pi_id ); $meta = (array) $args['meta']; $meta['stripe_payment_link'] = $pi_link; $args['meta'] = $meta; return $args; }