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.1

apply_filters('load_script_textdomain_relative_path') is found 1 times:

  • /wp-includes/l10n.php line 1241
    	 *
    	 * @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: