WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Brandon
    Member
    Posted 9 months 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?

    http://wordpress.org/plugins/forms-3rdparty-integration/

  2. zaus
    Member
    Plugin Author

    Posted 7 months 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
    Member
    Plugin Author

    Posted 5 months ago #

    Closed, no activity.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.