Module::filter_previous_button_label( string $prev_button_label, int $form_id )

Filters the label for the Previous button in the frontend.

Description

See also

Parameters

$prev_button_label

(string) (Required) The Previous button label.

$form_id

(int) (Required) Form ID.

Return

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

Source

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

	protected function filter_previous_button_label( $prev_button_label, $form_id ) {
		$prev_button_label = $this->get_form_option( $form_id, 'previous_button_label', '' );
		if ( empty( $prev_button_label ) ) {
			$prev_button_label = $this->get_default_previous_button_label();
		}

		return $prev_button_label;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.