function ubik_meta_data() { // Return early if this function is called outside the loop if (!in_the_loop()) { return; } // Microformats2 switch if (apply_filters('ubik_meta_microformats', false) === true) { $data = array('type' => ubik_meta_type(), 'parent' => ubik_meta_parent(), 'categories' => ubik_meta_categories_microformats(), 'tags' => ubik_meta_tags_microformats(), 'taxonomies' => ubik_meta_taxonomies(), 'author' => ubik_meta_microformat_author(ubik_meta_author()), 'published' => ubik_meta_date_published(), 'updated' => ubik_meta_date_updated()); } else { $data = array('type' => ubik_meta_type(), 'parent' => ubik_meta_parent(), 'categories' => ubik_meta_categories(), 'tags' => ubik_meta_tags(), 'taxonomies' => ubik_meta_taxonomies(), 'author' => ubik_meta_author(), 'published' => ubik_meta_date_published(), 'updated' => ubik_meta_date_updated()); } // Return all metadata as an array return apply_filters('ubik_meta_data', $data); }
function ubik_meta_categories_microformats($before = '', $sep = ', ', $after = '', $threshold = '') { return ubik_meta_categories($before . '<span class="p-category">', '</span>' . $sep . '<span class="p-category">', '</span>' . $after, $threshold); }