Translations_AJAX

Translations for the AJAX class.

Description

Source

File: src/translations/translations-ajax.php

class Translations_AJAX extends Translations_AJAX_Base {

	/**
	 * Initializes the translation strings.
	 *
	 * @since 1.0.0
	 */
	protected function init() {
		$this->translations = array(
			/* translators: %s: admin_init */
			'ajax_registered_too_late'      => __( 'AJAX actions must be registered before the %s hook.', 'torro-forms' ),
			'ajax_invalid_action_name'      => __( 'Invalid AJAX action name.', 'torro-forms' ),
			'ajax_request_invalid_action'   => __( 'Invalid action.', 'torro-forms' ),
			'ajax_request_invalid_callback' => __( 'Invalid callback.', 'torro-forms' ),
			'ajax_request_invalid_nonce'    => __( 'Invalid nonce.', 'torro-forms' ),
		);
	}
}

Changelog

Changelog
Version Description
1.0.0 Introduced.

Methods

  • init — Initializes the translation strings.