Published on : September 25, 2020
Title : Add Popup
Purpose : To display popup on button click.
Syntax : [php.wp_remote_post p1=’url’ p2=’array data’ o.set=variable name /]
Input Parameters :
p1 : (Required) URL to retrieve
p2 : (array) (Optional) Request arguments. Default value: array()
Return Value : It returns the response received from the URL
Example 1 :
Code : Open Popup [template.set msg]
Sublans available are:
[/template.set] [manage_service.alert msg=”{template.msg}” msg_type=”info” o.set=template.msg/]
Output : “result” => string(7) “success”
“response” => array(3)
Description : We passed the URL from where we wanted to receive the response for mcaid we passed. And based on that we received the response from the URL in json which we decoded