Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

XMLRPC User Agent

Store the user agent when posting from XMLRPC and provide functions to themes to make it visible

Theme support

If you want to use this in your theme, it's really simple:

<?php if ( function_exists( 'xua_the_agent_link' ) ) : ?>
    <span class="user-agent">
        <?php xua_the_agent_link( __( 'Posted via ' ) ) ?>
    <span class="meta-sep">|</span>
<?php endif; ?>

Available functions with the iOS app as an example:

  • xua_get_the_agent($post_ID) returns "WordPress for iOS"
  • xua_get_the_agent_url($post_ID) returns "http://ios.wordpress.org/"
  • xua_get_the_agent_link($post_ID) returns "<a rel='nofollow' href='http://ios.wordpress.org/'>WordPress for iOS</a>"
  • xua_the_agent() prints "WordPress for iOS"
  • xua_the_agent_link($before = '', $after = '') prints "<a rel='nofollow' href='http://ios.wordpress.org/'>WordPress for iOS</a>"

Requires: 2.7 or higher
Compatible up to: 3.1.4
Last Updated: 6 years ago
Active Installs: Less than 10


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.