Filter
Filter the main TML script data.
apply_filters( 'tml_script_data', array $data )
Parameters
-
$dataarray - The main TML script data.
Source
Fired in tml_enqueue_scripts()
$data = apply_filters(
'tml_script_data',
array(
'action' => tml_is_action() ? tml_get_action()->get_name() : '',
'errors' => tml_get_errors()->get_error_codes(),
'autofocus' => $autofocus,
// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- reuses WP core's translated wp-login.php strings verbatim.
'showPasswordLabel' => __( 'Show password' ),
// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- reuses WP core's translated wp-login.php strings verbatim.
'hidePasswordLabel' => __( 'Hide password' ),
// phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- reuses WP core's translated wp-ajax-response string verbatim.
'ajaxErrorMessage' => __( 'An error occurred while processing your request. Please try again later.' ),
)
);
Changelog
| Version | Description |
|---|---|
| 7.0.15 | Introduced. |