Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

need help with actions and hooks

$
0
0

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


Viewing all articles
Browse latest Browse all 59525

Trending Articles