In a future version update, could you please consider adding at least two action hooks to this plugin in the send_request function of the GFSalesforceWebToLead object?
Action Hook 1:
do_action( ‘gf_sf_web_to_lead_post_request’, $args );
This would be placed just before the call to wp_remote_post so that people could hook into the arguments to see them ( for debug purposes ).
Action Hook 2:
do_action( ‘gf_sf_web_to_lead_post_result’, $result );
This would be placed just after the call to wp_remote_post so that people could hook into the generated results to see them ( for debug purposes )
Filters would work great as well … but I’d just like to be able to easily see what is being sent / returned so that when there are issues I can see them and/or have them emailed to me so that I know something is amiss.
- The topic ‘Requesting action hook’ is closed to new replies.