Home Forums Plugin Support WP User Frontend Pro Edit Button once submitted

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Mahi 5 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9304

    Kristopher
    Participant
    Post count: 5

    Ok, firstly I just saw you are Australian. Awesome.

    I was wondering (after playing with ALL the settings) is when a product (woocommerce) is submitted the user is redirected to the newly created page.

    I want the user to be able to edit the product if they want to.

    If you press back and edit the form you will create another product.

    #9332

    Mahi
    Member
    Post count: 1555

    You have to setup – edit page and then assign it accordingly.

    Documentation:http://docs.wedevs.com/wp-user-frontend-pro/#post-editing

    #9389

    Kristopher
    Participant
    Post count: 5

    Mahi,

    I have created a video to explain what i mean

    I have already created the edit page.

    #9790

    Kristopher
    Participant
    Post count: 5

    I got the answer for this. Please email me if you need krisdavant@yahoo.com

    #9796

    Mahi
    Member
    Post count: 1555

    Hello @Kristopher,

    So sorry for late reply mate. You have to use bellow code on your theme file where you want to insert edit option.

    and make sure you enabled – “User can edit post” option from settings. Else, they will not be able to see this.

      <?php
                                    if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard' ) == 'yes' ) {
                                        $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
                                        $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_general' );
                                        $url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );
    
                                        if ( $post->post_status == 'pending' && $disable_pending_edit == 'on' ) {
                                                // don't show the edit link
                                            } else {
                                                ?>
                                                <a href="<?php echo wp_nonce_url( $url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a>
                                            <?php
                                        }
                                    }
                                    ?>
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Edit Button once submitted’ is closed to new replies.