Automator_Translations::get( null|string $string_key = null )

Get the strings associated with the string key


Parameters Parameters

$string_key

(Optional)

Default value: null


Top ↑

Return Return

(null|string)


Source Source

File: src/core/lib/utilities/class-automator-translations.php

	public function get( $string_key = null ) {

		if ( isset( $error_messages[ $string_key ] ) ) {
			$localized_string = $this->ls[ $string_key ];
		} else {
			return null;
		}

		/**
		 * Filters the specific string
		 */
		$localized_string = apply_filters_deprecated(
			'uap_localized_string',
			array(
				$localized_string,
				$string_key,
			),
			'3.0',
			'automator_localized_string'
		);
		$localized_string = apply_filters( 'automator_localized_string', $localized_string, $string_key );

		return $localized_string;
	}