{"id":52363,"date":"2016-11-28T20:15:42","date_gmt":"2016-11-28T20:15:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/callback-for-monarch-by-logic-hop\/"},"modified":"2016-12-01T16:41:30","modified_gmt":"2016-12-01T16:41:30","slug":"callback-for-monarch-by-logic-hop","status":"publish","type":"plugin","link":"https:\/\/hat.wordpress.org\/plugins\/callback-for-monarch-by-logic-hop\/","author":15112783,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"4.6.30","requires":"4.0.1","requires_php":"","requires_plugins":"","header_name":"Callback for Monarch by Logic Hop","header_author":"Logic Hop","header_description":"","assets_banners_color":"000000","last_updated":"2016-12-01 16:41:30","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/logichop.com","header_plugin_uri":"https:\/\/logichop.com\/resources\/callback-for-monarch-plugin\/?ref=wp-plugins-menu","header_author_uri":"https:\/\/logichop.com","rating":0,"author_block_rating":0,"active_installs":20,"downloads":3040,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.0":"<p>Initial version<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1542265","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1542265","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1542265","resolution":"1544x500","location":"assets","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1542265","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[229,127181,138,324,174],"plugin_category":[56,59],"plugin_contributors":[126150],"plugin_business_model":[],"class_list":["post-52363","plugin","type-plugin","status-publish","hentry","plugin_tags-javascript","plugin_tags-monarch","plugin_tags-share","plugin_tags-sharing","plugin_tags-social","plugin_category-social-and-sharing","plugin_category-utilities-and-tools","plugin_contributors-logichop"],"banners":{"banner":"https:\/\/ps.w.org\/callback-for-monarch-by-logic-hop\/assets\/banner-772x250.png?rev=1542265","banner_2x":"https:\/\/ps.w.org\/callback-for-monarch-by-logic-hop\/assets\/banner-1544x500.png?rev=1542265","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/callback-for-monarch-by-logic-hop\/assets\/icon-128x128.png?rev=1542265","icon_2x":"https:\/\/ps.w.org\/callback-for-monarch-by-logic-hop\/assets\/icon-256x256.png?rev=1542265","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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 \u2013 Simply add the following code:<\/p>\n\n<pre><code>&lt;script&gt;\n    function logichop_monarch_callback (stats) {\n        console.log( 'logichop_monarch_callback' );\n        console.log( stats );\n        \/\/ Your Javascript code here\n    } \n&lt;\/script&gt;\n<\/code><\/pre>\n\n<p>When a Monarch event is triggered the <strong>stats<\/strong> parameter is sent to the <em>logichop_monarch_callback<\/em> function with the following values:<\/p>\n\n<ul>\n<li><strong>action<\/strong>\n\n<ul>\n<li><em>The action performed. Typically 'share', 'follow' or 'media'.<\/em><\/li>\n<\/ul><\/li>\n<li><strong>network<\/strong>\n\n<ul>\n<li><em>The network for which the action was triggered. 'Facebook', 'Twitter', etc.<\/em><\/li>\n<\/ul><\/li>\n<li><strong>media_url<\/strong>\n\n<ul>\n<li><em>Image URL when media is shared.<\/em><\/li>\n<\/ul><\/li>\n<li><strong>post_id<\/strong>\n\n<ul>\n<li><em>ID of the page or post where the button was triggered.<\/em><\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p><strong>Interested in Content Personalization for Wordpress?<\/strong> See how we're using Monarch with Logic Hop \u2013 Check out our tutorial at: https:\/\/logichop.com\/track-social-shares\/<\/p>\n\n<!--section=installation-->\n<p>This plugin requires the Monarch Social Sharing Plugin by Elegant Themes.<\/p>\n\n<ol>\n<li>Unzip the callback-for-monarch-by-logic-hop.zip file<\/li>\n<li>Upload the callback-for-monarch-by-logic-hop folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How The Callback Works<\/dt>\n<dd><p>Callback for Monarch by Logic Hop calls a Javascript function named 'logichop_monarch_callback' when a Monarch social share action is triggered.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"Callback for Monarch by Logic Hop adds a Javascript callback to the Monarch Social Sharing Plugin. Simply install the plugin and a callback is automat &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52363"}],"author":[{"embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/logichop"}],"wp:attachment":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52363"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52363"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52363"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52363"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52363"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}