Forms: 3rd-Party Integration
[resolved] Display post response after submission using hook. (3 posts)

  1. Brandon
    Posted 2 years ago #

    I'm having difficulty displaying the post response after post to the page. I see that they are coming back when I enable debug. How might one get these to render to the page using the action hook?


  2. zaus
    Plugin Author

    Posted 2 years ago #

    Something like:

    class MyPlugin {
    	public function MyPlugin() {
    		// note that you'll want to hook to the right service; this hooks to all
    		add_filter('Forms3rdPartyIntegration_service', array(&$this, 'adjust_response'), 10, 2);
    	public function adjust_response($body, $refs) {
    		// use 'attach' to inject to regular email
    		// use 'message' to inject to page
    		$refs['attach'] = 'custom message in email';
    		$refs['message'] = 'custom message on page';
    new MyPlugin(); // engage!
  3. zaus
    Plugin Author

    Posted 2 years ago #

    Closed, no activity.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Forms: 3rd-Party Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.