{"id":11768,"date":"2011-03-30T00:24:37","date_gmt":"2011-03-30T00:24:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/xmlrpc-user-agent\/"},"modified":"2011-03-30T00:40:23","modified_gmt":"2011-03-30T00:40:23","slug":"xmlrpc-user-agent","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/xmlrpc-user-agent\/","author":542442,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.1.4","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"XMLRPC User Agent","header_author":"Jorge Bernal","header_description":"","assets_banners_color":"","last_updated":"2011-03-30 00:40:23","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/xmlrpc-user-agent\/","header_author_uri":"http:\/\/koke.me\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1265,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[841,14731],"plugin_category":[],"plugin_contributors":[77547],"plugin_business_model":[],"class_list":["post-11768","plugin","type-plugin","status-closed","hentry","plugin_tags-mobile","plugin_tags-xmlrpc","plugin_contributors-koke","plugin_committers-koke"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/xmlrpc-user-agent.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Store the user agent when posting from XMLRPC and provide functions to themes to make it visible<\/p>\n\n<h3>Theme support<\/h3>\n\n<p>If you want to use this in your theme, it's really simple:<\/p>\n\n<pre><code>&lt;?php if ( function_exists( 'xua_the_agent_link' ) ) : ?&gt;\n    &lt;span class=\"user-agent\"&gt;\n        &lt;?php xua_the_agent_link( __( 'Posted via ' ) ) ?&gt;\n    &lt;\/span&gt;\n    &lt;span class=\"meta-sep\"&gt;|&lt;\/span&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<p>Available functions with the iOS app as an example:<\/p>\n\n<ul>\n<li><code>xua_get_the_agent($post_ID)<\/code> returns <code>\"WordPress for iOS\"<\/code><\/li>\n<li><code>xua_get_the_agent_url($post_ID)<\/code> returns <code>\"http:\/\/ios.wordpress.org\/\"<\/code><\/li>\n<li><code>xua_get_the_agent_link($post_ID)<\/code> returns <code>\"&lt;a rel='nofollow' href='http:\/\/ios.wordpress.org\/'&gt;WordPress for iOS&lt;\/a&gt;\"<\/code><\/li>\n<li><code>xua_the_agent()<\/code> prints <code>\"WordPress for iOS\"<\/code><\/li>\n<li><code>xua_the_agent_link($before = '', $after = '')<\/code> prints <code>\"&lt;a rel='nofollow' href='http:\/\/ios.wordpress.org\/'&gt;WordPress for iOS&lt;\/a&gt;\"<\/code><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>xmlrpc-user-agent<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>There is no step 3<\/li>\n<\/ol>","raw_excerpt":"Store the user agent when posting from XMLRPC and provide functions to themes to make it visible","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11768"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/koke"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11768"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11768"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11768"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11768"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11768"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}