~/talk

PHP for WordPress

Talkat WordCamp Portland 2018 · on Saturday, 2018-11-03· [php, wordpress]
slides:none on file

Builds a one-file WordPress plugin that wraps chosen words in a span and shows a tooltip with a random quote, stored in two in-code arrays (motivation, encouragement). Uses PHP basics (arrays, foreach, str_ireplace), picks a quote with array_rand, enqueues a stylesheet via an action and hooks into content with add_filter('the_content'), and exposes a widget-friendly shortcode add_shortcode('random_quote'). Demoed working on pages and widget areas.

AI-written summary · about

~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.