dimanche 24 janvier 2016

Accessing variables globally

I have been creating a WordPress plugin which basically creates step by step tours on how to change any settings in WordPress. I was able to get most of the other things done, but the most complicated logic is how to check if the tour is running and if it is, get the current step and process it ..

I have been considering options like:

  • Setting global variables
  • Using history.pushState();
  • Using wp_options

Please give your expert opinions on how should I get this done ..



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire