fluentform_payment_method_render_{$methodName}

Description #

This action runs if the form has single payment method, then the payment method is rendered using this method.

/*
* Source Action
*/
do_action('fluentform_payment_method_render_'.$methodName, $methodElement, $form);

Usage #

add_action('fluentform_payment_method_render_stripe', function ( $methodElement, $form)
{
   // Do your stuffs here
}, 10, 2);

This code should be placed in the functions.php file of your active theme.

Paramertes #

  • $methodElement (array) Payment Method Data
  • $form (object) Form Object

Source Code #

This hook is located in /fluentformpro/src/Payments/Components/PaymentMethods.php

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *