関数 feed_content_type()
関数 feed_content_type()
定義ファイル :/blog/wp-includes/feed.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | function feed_content_type( $type = '' ) { if ( empty($type) ) $type = get_default_feed(); $types = array( 'rss' => 'application/rss+xml', 'rss2' => 'application/rss+xml', 'rss-http' => 'text/xml', 'atom' => 'application/atom+xml', 'rdf' => 'application/rdf+xml' ); $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream'; return apply_filters( 'feed_content_type', $content_type, $type ); } |