portalzine / Codekit - Timestamp Hook
0 likes
0 forks
1 files
Last active 7 months ago
| 1 | NOW=`date "+%a %Y-%m-%d %T"` |
| 2 | sed -i -- "s|{{TIMESTAMP}}|${NOW}|g" $CK_OUTPUT_PATH |
portalzine / Translate Slugs (Umlaute)
0 likes
0 forks
1 files
Last active 8 months ago
| 1 | add_filter( 'sanitize_title', '_translate_slug_umlauts', 5, 3 ); |
| 2 | /** |
| 3 | * Transliterates German umlauts in post slugs for both the classic and block editors. |
| 4 | * |
| 5 | * @param string $title The sanitized title. |
| 6 | * @param string $raw_title The title prior to any sanitization. |
| 7 | * @param string $context The context in which the sanitization is occurring. |
| 8 | * |
| 9 | * @return string The modified title with German umlauts transliterated. |
| 10 | */ |
Newer
Older