plugin-icon

XMPP Enabled

XMPP Enabled provides a single-function API for other plugins that use Jabber/XMPP messaging protocol.
Betyg
5
Senast uppdaterat
December 6, 2017
Version
1.0.2
Aktiva installationer
10

XMPP Enabled provides a single function API for other plugins that use Jabber/XMPP messaging protocol. See API section for details if you want to use XMPP protocol in your notifications.

  • GitHub page: https://github.com/sandfoxme/xmpp-enabled

Thanks to

  • Mako N (Japanese translation and i18n support)

Plugin API

The Single Function

The single function for sending XMPP Messages is xmpp_enabled. It can be called directly from any WordPress plugin

xmpp_enabled($recipient, $message, $subject='', $type='normal');
  • $recipient is a valid (bare or full) JID of the recipient like ’juliet@capulet.net’
  • $message is a plain text message to be sent
  • $subject is a title line for message. It is usually omitted for chat-type messages
  • $type is a type of message. It can be ’chat’, ’normal’ or ’headline’. See RFC 3921 for details

Example: xmpp_send('subscriber@something.com',"Read our new post:\nhttp://something.com/new-post",'New post is published','headline');

Create submenu in the XMPP Enabled section

XMPP Enabled creates it’s own section and you’re free to use it for your plugins. The code is 'xmpp-enabled'

Example: add_submenu_page('xmpp-enabled', 'Jabber Comment Notifications', 'Comment Notifications', 'administrator', __FILE__, 'jcommnotify_settings');

See Adding Administration Menus in WordPress Codex for further details

Gratispå Creator-paket
Aktiva installationer
10
Testat upp till
4.9.26
Det här tillägget är tillgängligt för nedladdning och kan användas på din WordPress-installation som drivs på egen server.