I created a wordpress plugin with a add_shortcode filter that sends an api call to our system and retrieves documents from the server. However, I noticed that it fires even in the Admin area while I am editing a post or a page. So as I type the value inside the shortcode, it continuously communicates with the server.
How do I stop the shortcode from firing the api call function unless it was published in the post/page?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire