WordPress and enclosures
When you publish or update a post in WordPress, it checks the post
body for any audio or video URLs. If any are found, WordPress creates
_encloseme row (pointing to the post ID) in
schedules a one-time WP-Cron event.
This WP-Cron event looks for any
_encloseme fields in
and for each one it finds, fetches any of the found audio or video
URLs to determine file size and MIME type. It then inserts this data
enclosure post meta variable and deletes the
When rendering any RSS/Atom feeds, these enclosure post meta variables
are included as
Safely remove hosts from known host list
This is useful if a host changes their SSH keys and you need to get their new ones.
Reset ID sequences in PostgreSQL
This is useful if you
DELETE FROM <table> a bunch of data and also
want the sequence to start from the default value next time you start
Get the “Posts page” in WordPress
You can designate a given page as the “Posts page” in a WordPress site. If you need access to this page, use ‘posts_for_page’ to avoid hardcoding page lookup parameters.