Replies: 0
Hello, I’m creating a plugin which connected to a api via post method and then receive some information and then I use add_shortcode method to show information using shortcode, the problem is it send many request to api, I only want to send 1 request when someone load a page with those shortcodes, I wrote my fucntion and then used add_shortcode( “getrates”, “getratesfunc” ); how can i do that ?
here is my code : https://0bin.net/paste/9Nbd8cmb#-sLtcoCT54Qb1RB4GcBg0KatAwqPzohjOSaqhHMuZA6