How to call facebook sync from another plugin
-
Hello first of all thank you for this beautiful plugin.
I have a plugin that updates the price via ajax.
From what I saw the facebook plugin only syncs if you hit the update button.
Therefore, when my other plugin updates the price by ajax, the changes are not reflected in the facebook synchronization.My question is how to call the update manually through another plugin.
Is there a trigger to call the sync function?I need to call sync when the ajax response ends in exactly this code.
$.ajax({ type : 'POST', url : ajaxurl, data : { action: 'updatenotasexterpronedu', notasadmin : notasadmin, product_id: <?php echo $post->ID; ?>, execute: "addnotes" //otroidenficiador }, success: function(response) { **//// I need to call the product synchronization here ///** **//// I need to call the product synchronization here ///** **//// I need to call the product synchronization here ///** if (response == "Okeytodo") { alert ("Nota de Producto y precio Externo actualizada"); } else { alert ("Error de respuestas, Nota y precio de Producto Externo no actualizada"); } } });
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to call facebook sync from another plugin’ is closed to new replies.