WordPress at a glance
function is not described

MagpieRSS::append() public WP 1.0

smart append - field and namespace aware

{} It's a method of the class: MagpieRSS{}

No Hooks.

Return

null. Nothing.

Usage

$MagpieRSS = new MagpieRSS();
$MagpieRSS->append( $el, $text );
$el (required)
-
$text (required)
-

Code of MagpieRSS::append() WP 5.7.2

<?php
function append($el, $text) {
	if (!$el) {
		return;
	}
	if ( $this->current_namespace )
	{
		if ( $this->initem ) {
			$this->concat(
				$this->current_item[ $this->current_namespace ][ $el ], $text);
		}
		elseif ($this->inchannel) {
			$this->concat(
				$this->channel[ $this->current_namespace][ $el ], $text );
		}
		elseif ($this->intextinput) {
			$this->concat(
				$this->textinput[ $this->current_namespace][ $el ], $text );
		}
		elseif ($this->inimage) {
			$this->concat(
				$this->image[ $this->current_namespace ][ $el ], $text );
		}
	}
	else {
		if ( $this->initem ) {
			$this->concat(
				$this->current_item[ $el ], $text);
		}
		elseif ($this->intextinput) {
			$this->concat(
				$this->textinput[ $el ], $text );
		}
		elseif ($this->inimage) {
			$this->concat(
				$this->image[ $el ], $text );
		}
		elseif ($this->inchannel) {
			$this->concat(
				$this->channel[ $el ], $text );
		}

	}
}