Skip to content

Instantly share code, notes, and snippets.

View daniloercoli's full-sized avatar

Danilo Ercoli daniloercoli

View GitHub Profile
@markoheijnen
markoheijnen / update-languages.sh
Last active December 16, 2015 17:18
Update all windows languages
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LANGUAGES=(
"de:WordPress/Localization/LocalizedResources.de-DE.resx"
"es:WordPress/Localization/LocalizedResources.es-ES.resx"
"it:WordPress/Localization/LocalizedResources.it-IT.resx"
"ja:WordPress/Localization/LocalizedResources.ja-JP.resx"
"nl:WordPress/Localization/LocalizedResources.nl.resx"
@Viper007Bond
Viper007Bond / whatissoslow.php
Last active October 29, 2023 14:23
WordPress: Times how long it takes each filter and action to run and displays results at the end of the page. Quick and dirty.
<?php
/**
* This little class records how long it takes each WordPress action or filter
* to execute which gives a good indicator of what hooks are being slow.
* You can then debug those hooks to see what hooked functions are causing problems.
*
* This class does NOT time the core WordPress code that is being run between hooks.
* You could use similar code to this that doesn't have an end processor to do that.
*