danielbachhuber/Edit-Flow — Issue #49: Code snippet: Remove or add items to a post popup on the calendar
Author: danielbachhuber
Created: 2012-01-28 22:41:51+00:00
State: open
Labels: Code Snippets

If a user doesn't want the "Format" field to show, for instance, it would be great if they could disable this on a code level. From Pivotal:

Post formats (like any field) will be hidden if there is no post format assigned to the post. Not quite the same as current_theme_supports(), because a user could activate a theme with support for post_formats, pick a post format for a post assigning the postmeta, and then switch to a theme without support for post_formats. In that case, the format will still appear on the overlay.

I think that's fine, though.

People can further customize with the filters if they need to, like so:

add_filter( 'ef_calendar_hide_tax_post_format_item_information_field', '__return true' );