MagpieRSS::map_attrs() WordPress Method
MagpieRSS::map_attrs() is a method used in WordPress to map an attribute to a certain value. This is useful when you want to store data in a certain format, but the data you are working with is in a different format. For example, you could use this method to map the “title” attribute to the “post_title” value in WordPress.
MagpieRSS::map_attrs( $k, $v ) #
Contents
Source
File: wp-includes/rss.php
function map_attrs($k, $v) { return "$k=\"$v\""; }
Expand full source codeCollapse full source codeView on TracView on GitHub