Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @june01

    Could you please provide a screenshot of the issue you’re seeing? You can upload the screenshot via imgur.com and then share the image URL here so we can review them.

    Regards,

    Thread Starter june01

    (@june01)

    This is the link

    the plugin for the post submit form is WP User Frontend

    When I click on submit, this error appears.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @june01

    Please try this code snippet below for the function um_account_content_hook_mytab:

    add_filter('um_account_content_hook_mytab', 'um_account_content_hook_mytab');
    function um_account_content_hook_mytab( $output ){
    	ob_start();
    	?>
    		
    	<div class="um-field">
    		
    		<!-- Here goes your custom content -->
    		<h1>Hi</h1>
    		<?php echo do_shortcode( '[wpuf_form id="184"]' ); ?>
    		
    	</div>		
    		
    	<?php
    		echo '<input type="hidden" name="um_account_nonce_'. esc_attr( 'mytab' ).'" value="'.esc_attr( wp_create_nonce( 'um_update_account_mytab' ) ).'" />';
            
    	$output .= ob_get_contents();
    	ob_end_clean();
    	return $output;
    }
    • This reply was modified 4 years, 8 months ago by Champ Camba.
    Thread Starter june01

    (@june01)

    Updated the code, now I am getting this message on form submit:
    “Your account was updated successfully.”

    But the post is still not submitted.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @june01

    We haven’t tried this with the WP User front-end. Does it submit the form with ajax?

    Regards,

    Thread Starter june01

    (@june01)

    Yes, it uses ajax for form submit.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @june01

    Unfortunately, you will have to customize it so that it saves the WP User Front-end fields when submitting the UM Account form.

    Let’s see if others in the forum have done something similar and share their solution here.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @june01

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. πŸ™‚

    Regards,

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘New Account tab with shortcode’ is closed to new replies.