• Resolved gleenk

    (@gleenk)


    Hi guys, how can i add an edit link to my current post visible on frontend? I need the same url i will get by wpuf_edit_post_link() function used in dashboard. Ty

Viewing 2 replies - 1 through 2 (of 2 total)
  • I solved by using this:

    <?php $edit_page              = (int) wpuf_get_option( 'edit_page_id', 'wpuf_frontend_posting' );
    			$post_id                = $post->ID;
                $url                    = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );
    			$edit_page_url = apply_filters( 'wpuf_edit_post_link', $url );
    
    			?>
    			<a href="<?php echo wp_nonce_url( $edit_page_url, 'wpuf_edit' ); ?>">Modifica</a>

    Cool. Hope Wedevs will add this option at some point…?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get wpuf_edit_post_link()?’ is closed to new replies.