This topic is: not resolved

This topic contains 16 replies, has 2 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #45265

    Alexandre
    Member
    Post count: 73

    Hi Towhid

    Wrong code, the right code is this one : so far it seems to work, tx !

    if (is_single() ){
    $override = wpuf_get_option( 'override_editlink', 'wpuf_general', 'yes' );
        if ( $override == 'yes' ) {
            $url = '';
            if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
                $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_general' );
                $url = get_permalink( $edit_page );
    
                $url = wp_nonce_url( $url . '?pid=' . $post_id, 'wpuf_edit' );
            }
        }
     }
    #45281

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    I am very glad to know that the code is work for you. I am going to mark the topic as resolved and closed.

    Thanks

Viewing 2 posts - 16 through 17 (of 17 total)

The topic ‘Edit link’ is closed to new replies.