mercredi 16 décembre 2015

Wordpress synchronization from plugin

I'm building a plugin that insert a snippet of my solution in user post. The data of this snippet is stored on my server but I would like to allow the plugin user to synchronise it with the database.

I see basically 2 solutions :

  • Create an endpoint with add_rewrite_endpoint() and call it every time an update is done on my server.
  • Create a cron with wp_cron and call my solution with a delta date.

My problem is I can't figure out which solutions is better, I don't even know if the first one is really doable ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire