All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists matching topic Hook

Recently created
Least recently created
Recently updated
Least recently updated
portalzine's Avatar

portalzine / Codekit - Timestamp Hook

0 likes
0 forks
1 files
Last active 7 months ago
Add current timestamp to files, when compiling
Codekit Hook
1 NOW=`date "+%a %Y-%m-%d %T"`
2 sed -i -- "s|{{TIMESTAMP}}|${NOW}|g" $CK_OUTPUT_PATH
portalzine's Avatar

portalzine / Translate Slugs (Umlaute)

0 likes
0 forks
1 files
Last active 8 months ago
Hook WordPress
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

Powered by Opengist ⋅ Load: 64ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ Data Privacy