MagpieRSS::append_content() WordPress Method
The MagpieRSS::append_content() WordPress method appends content to an existing RSS document. This is useful for modifying an existing RSS document, or for creating a new RSS document from scratch. The method takes two parameters: $content and $type. The $content parameter is the content to be appended, and the $type parameter is the type of content being appended. The $type parameter can be one of the following: - "text/xml" : Appends the content as XML. - "text/html" : Appends the content as HTML. - "text/plain" : Appends the content as plain text. The MagpieRSS::append_content() method returns the modified RSS document as a string.
MagpieRSS::append_content( $text ) #
Source
File: wp-includes/rss.php
function append_content($text) { if ( $this->initem ) { $this->concat( $this->current_item[ $this->incontent ], $text ); } elseif ( $this->inchannel ) { $this->concat( $this->channel[ $this->incontent ], $text ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub