Pre-filters script translations for the given file, script handle and text domain.
$translationsstring|false|null$filestring|false$handlestring$domainstringwp-includes/l10n.php:1297load_script_translations()<?php * * @param string|false|null $translations JSON-encoded translation data. Default null. * @param string|false $file Path to the translation file to load. False if there isn't one. * @param string $handle Name of the script to register a translation domain to. * @param string $domain The text domain. */ $translations = apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain ); if ( null !== $translations ) { return $translations; } /**Introduced in 5.0.2. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.