Filters the relative path of scripts used for finding translation files.
$relativestring|false$srcstringwp-includes/l10n.php:1241load_script_textdomain() * * @since 5.0.2 * * @param string|false $relative The relative path of the script. False if it could not be determined. * @param string $src The full source URL of the script. */ $relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src ); // If the source is not from WP. if ( false === $relative ) { return load_script_translations( false, $handle, $domain ); }Introduced in 5.0.2. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$is_module added.verified against source