Filters the relative path of scripts used for finding translation files.
$relativestring|false$srcstring$is_moduleboolwp-includes/l10n.php:1316_load_script_textdomain_from_src() * @since 7.0.0 The `$is_module` parameter was added. * * @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. * @param bool $is_module Whether the source belongs to a script module (true) or a classic script (false). */ $relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src, $is_module ); // If the source is not from WP. if ( ! is_string( $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