Module::filter_next_button_label( string $next_button_label, int $form_id )

Filters the label for the Next button in the frontend.

Description

See also

Parameters

$next_button_label

(string) (Required) The Next button label.

$form_id

(int) (Required) Form ID.

Return

(string) The Next button label depending on the form setting.

Source

File: src/modules/form-settings/module.php

	protected function filter_next_button_label( $next_button_label, $form_id ) {
		$next_button_label = $this->get_form_option( $form_id, 'next_button_label', '' );
		if ( empty( $next_button_label ) ) {
			$next_button_label = $this->get_default_next_button_label();
		}

		return $next_button_label;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.