Module::filter_submit_button_label( string $submit_button_label, int $form_id )

Filters the label for the Submit button in the frontend.

Description

See also

Parameters

$submit_button_label

(string) (Required) The Submit button label.

$form_id

(int) (Required) Form ID.

Return

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

Source

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

	protected function filter_submit_button_label( $submit_button_label, $form_id ) {
		$submit_button_label = $this->get_form_option( $form_id, 'submit_button_label', '' );
		if ( empty( $submit_button_label ) ) {
			$submit_button_label = $this->get_default_submit_button_label();
		}

		return $submit_button_label;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.