Title: Callback for Monarch by Logic Hop
Author: Logic Hop
Published: <strong>28 de noviembre de 2016</strong>
Last modified: 1 de diciembre de 2016

---

Buscar plugins

![](https://ps.w.org/callback-for-monarch-by-logic-hop/assets/banner-772x250.png?
rev=1542265)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://ps.w.org/callback-for-monarch-by-logic-hop/assets/icon-256x256.png?rev
=1542265)

# Callback for Monarch by Logic Hop

 Por [Logic Hop](https://profiles.wordpress.org/logichop/)

[Descargar](https://downloads.wordpress.org/plugin/callback-for-monarch-by-logic-hop.1.0.0.zip)

 * [Detalles](https://es.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/callback-for-monarch-by-logic-hop/#developers)

 [Soporte](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/)

## Descripción

Callback for Monarch by Logic Hop adds a Javascript callback to the Monarch Social
Sharing Plugin. Simply install the plugin and a callback is automatically available
when any Monarch social share or follow button is clicked.

Now you can trigger custom events when a social share or follow button has been 
clicked. The callback is available for use in your pages, posts or Javascript files–
Simply add the following code:

    ```
    <script>
        function logichop_monarch_callback (stats) {
            console.log( 'logichop_monarch_callback' );
            console.log( stats );
            // Your Javascript code here
        } 
    </script>
    ```

When a Monarch event is triggered the **stats** parameter is sent to the _logichop\
_monarch\_callback_ function with the following values:

 * **action**
    - _The action performed. Typically ‘share’, ‘follow’ or ‘media’._
 * **network**
    - _The network for which the action was triggered. ‘Facebook’, ‘Twitter’, etc._
 * **media_url**
    - _Image URL when media is shared._
 * **post_id**
    - _ID of the page or post where the button was triggered._

**Interested in Content Personalization for WordPress?** See how we’re using Monarch
with Logic Hop – Check out our tutorial at: https://logichop.com/track-social-shares/

## Instalación

This plugin requires the Monarch Social Sharing Plugin by Elegant Themes.

 1. Unzip the callback-for-monarch-by-logic-hop.zip file
 2. Upload the callback-for-monarch-by-logic-hop folder to the `/wp-content/plugins/`
    directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  How The Callback Works

Callback for Monarch by Logic Hop calls a Javascript function named ‘logichop_monarch_callback’
when a Monarch social share action is triggered.

## Reseñas

No hay valoraciones para este plugin.

## Colaboradores y desarrolladores

«Callback for Monarch by Logic Hop» es un software de código abierto. Las siguientes
personas han colaborado con este plugin.

Colaboradores

 *   [ Logic Hop ](https://profiles.wordpress.org/logichop/)

[Traduce «Callback for Monarch by Logic Hop» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/callback-for-monarch-by-logic-hop)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/callback-for-monarch-by-logic-hop/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/callback-for-monarch-by-logic-hop/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/callback-for-monarch-by-logic-hop/)
por [RSS](https://plugins.trac.wordpress.org/log/callback-for-monarch-by-logic-hop/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.0.0

 * Initial version

## Meta

 *  Versión **1.0.0**
 *  Última actualización **hace 10 años**
 *  Instalaciones activas **20+**
 *  Versión de WordPress ** 4.0.1 o superior **
 *  Probado hasta **4.6.30**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/callback-for-monarch-by-logic-hop/)
 * Etiquetas:
 * [javascript](https://es.wordpress.org/plugins/tags/javascript/)[monarch](https://es.wordpress.org/plugins/tags/monarch/)
   [share](https://es.wordpress.org/plugins/tags/share/)[sharing](https://es.wordpress.org/plugins/tags/sharing/)
   [social](https://es.wordpress.org/plugins/tags/social/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/callback-for-monarch-by-logic-hop/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

[Tu valoración](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/reviews/)

## Colaboradores

 *   [ Logic Hop ](https://profiles.wordpress.org/logichop/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/callback-for-monarch-by-logic-hop/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://logichop.com)