WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Display post response after submission using hook.

[Resolved] Display post response after submission using hook.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author zaus

    @zaus

    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!
    Plugin Author zaus

    @zaus

    Closed, no activity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Display post response after submission using hook.’ is closed to new replies.