load_script_textdomain_relative_path

load_script_textdomain_relative_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('load_script_textdomain_relative_path') is found 1 times:

  • /wp-includes/l10n.php line 1241
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    *
     * @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 );
    }

See this hook used in plugins: