AtomParser::map_attrs() WordPress Method

The AtomParser::map_attrs() method is used to map Atom feed attributes to their WordPress equivalents. This is necessary because the Atom specification is not identical to the WordPress specification. For example, the Atom specification includes an "id" attribute, while the WordPress specification uses a "guid" attribute. This method makes it possible to use an Atom feed with a WordPress site.

AtomParser::map_attrs( string $k, string $v ) #

Map attributes to key=”val”


Parameters

$k

(string)(Required)Key

$v

(string)(Required)Value


Top ↑

Return

(string)


Top ↑

Source

File: wp-includes/atomlib.php

	public static function map_attrs($k, $v) {
		return "$k=\"$v\"";
	}

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.