XMLRPC User Agent Wordpress Plugin - Rating, Reviews, Demo & Download

XMLRPC User Agent Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

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 "https://ios.wordpress.org/"
  • xua_get_the_agent_link($post_ID) returns "<a rel='nofollow' href='https://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='https://ios.wordpress.org/'>WordPress for iOS</a>"

Screenshots

No screenshots provided


Reviews & Comments