feed_content_type [ WordPress Function ]
feed_content_type ( $type = '' )
| Defined at: |
|
Soorgelijke functies: get_comment_type, comment_type, the_content_feed, get_the_content_feed, the_content
Return the content type for specified feed type.
Source
<?php
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 );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- feed_content_type Wordpress hook details -- Adam Brown, BYU ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info - feed_content_type | A HitchHackers guide through WordPress
Feb 11, 2011 ... function feed_content_type( $type = '' ) { if ( empty($type) ) $type = get_default_feed(); $types = array( 'rss' => 'application/rss+xml', 'rss2' ...
hitchhackerguide.com - feed_content_type (WordPress Function) - WPSeek.com
WordPress lookup for feed_content_type, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - feed_content_type() WordPress function reference, arguments and ...
Source. function feed_content_type( $type = '' ) { if ( empty($type) ) $type = get_default_feed(); $types = array( 'rss' => 'application/rss+xml', 'rss2' ...
queryposts.com