Title: MagpieRSS::map_attrs
Published: April 25, 2014
Last modified: August 20, 2026

---

# MagpieRSS::map_attrs( $k,  $v )

[ Back to top](https://developer.wordpress.org/reference/classes/magpierss/map_attrs/?output_format=md#wp--skip-link--target)

## Source

    ```php
    function map_attrs($k, $v) {
    	return "$k=\"$v\"";
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rss.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/rss.php#L387)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rss.php#L387-L389)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fmagpierss%2Fmap_attrs%2F)
before being able to contribute a note or feedback.