wpcf7_stripe_smt()
Registers the [_stripe_payment_link] special mail-tag.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wpcf7_stripe_smt( $output, $tag_name, $html, $mail_tag );
- $output (обязательный)
- -
- $tag_name (обязательный)
- -
- $html (обязательный)
- -
- $mail_tag **
- -
По умолчанию: null
Код wpcf7_stripe_smt() wpcf7 stripe smt CF7 5.9.3
function wpcf7_stripe_smt( $output, $tag_name, $html, $mail_tag = null ) { if ( '_stripe_payment_link' === $tag_name ) { $submission = WPCF7_Submission::get_instance(); $pi_id = $submission->pull( 'payment_intent' ); if ( ! empty( $pi_id ) ) { $output = wpcf7_stripe_get_payment_link( $pi_id ); } } return $output; }