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 );
		}
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.