plugin-icon

XMPP Enabled

XMPP Enabled provides a single-function API for other plugins that use Jabber/XMPP messaging protocol.
Évaluations
5
Mis à jour récemment
December 6, 2017
Version
1.0.2
Installations actives
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

Gratuitsur le plan Creator
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Installations actives
10
Testé jusqu’à version
4.9.26
Cette extension est disponible en téléchargement pour être utilisée sur votre installation WordPress auto-hébergée.