Description #
This action runs before rendering the payment method. All the payment method is rendered using this method.
/*
* Source Action
*/
do_action('fluentform/rending_payment_method_'.$methodName, $activatedMethod, $data, $form);
Usage #
add_action('fluentform/rending_payment_method_stripe', function ($activatedMethod, $data, $form)
{
// Do your stuffs here
}, 10, 2);
This code should be placed in the functions.php file of your active theme.
Parameters #
- $activatedMethod (string) Current Payment Method
- $data (array) Current Payment Element
- $form (object) Form Object
Source Code #
This hook is located in /fluentformpro/src/Payments/Components/PaymentMethods.php