Post Formats in the context of the Database ‘Save Post’ function

Post format for the post is term of native post_format taxonomy.

It can be set for the post by set_post_format() function. As with any taxonomy you can also use some deeper level function, but really there is no need. And I definitely don’t recommend to try and deal with terms and taxonomies directly in database (sanity at risk).

Core seems to be setting it in edit_theme() function.

Leave a Comment