WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!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>
    <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: 2011-3-30
Downloads: 416

Ratings

1 star
1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1