gform_mollie_payment_method_label

Description

Modify the Payment Method label when creating a Mollie field.

Usage

Applies to all forms:

add_filter( 'gform_mollie_payment_method_label', 'your_function_name', 10, 2 );

Applies to a specific form. In this case, form id 5.

add_filter( 'gform_mollie_payment_method_label_5', 'your_function_name', 10, 2 );

Parameters

  • $label string

    The label to be filtered..

  • $form_id int

    The current form ID.

Placement

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

Since

Added in Mollie 1.0

Source Code

json_encode( gf_apply_filters( array( 'gform_mollie_payment_method_label', rgget( 'id' ) ), esc_html__( 'Payment Method', 'gravityformsmollie' ), rgget( 'id' ) ) ), $default_payment_method ) . PHP_EOL;

This hook is located in GF_Field_Mollie::get_form_editor_inline_script_on_page_render() in class-gf-field-mollie.php.