Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor mjhead

    (@mjhead)

    Hi!
    At this moment you can do this only from the code with Call Hook notification. Here is an example:
    https://prntscr.com/z2kn49
    https://prntscr.com/z2ksj9

    add_action( 'jet-form-builder/custom-action/update-post', function( $request, $action ) {
    	if ( ! empty( $action->response_data['inserted_post_id'] ) ) {
    		$content = '<div><b>Phone:</b>' . $request['phone'] . '</div><div><b>Address:</b>' . $request['address'] . '</div>';
    		wp_update_post( array(
    			'ID'           => $action->response_data['inserted_post_id'],
    			'post_content' => $content,
    		) );
    	}
    }, 10, 2 );
    Thread Starter Weiching

    (@weiching-lin)

    Hi Andrey,

    It works perfectly.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert post like send email’ is closed to new replies.