Filter hook 'load_script_translations'

in WP Core File wp-includes/l10n.php at line 1337

Description

Filters script translations for the given file, script handle and text domain.

Occurrences

Filename Line Number
wp-includes/l10n.php 1337

Parameters

Type Name Description
string $translations JSON-encoded translation data.
string $file Path to the translation file that was loaded.
string $handle Name of the script to register a translation domain to.
string $domain The text domain.

PHP Doc

/**
	 * Filters script translations for the given file, script handle and text domain.
	 *
	 * @since 5.0.2
	 *
	 * @param string $translations JSON-encoded translation data.
	 * @param string $file         Path to the translation file that was loaded.
	 * @param string $handle       Name of the script to register a translation domain to.
	 * @param string $domain       The text domain.
	 */