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”
Contents
Parameters
- $k
(string)(Required)Key
- $v
(string)(Required)Value
Return
(string)
Source
File: wp-includes/atomlib.php
public static function map_attrs($k, $v) { return "$k=\"$v\""; }
Expand full source codeCollapse full source codeView on TracView on GitHub