• Resolved katanga1987

    (@katanga1987)


    Hi guys,

    I am using Job Manager (plus a theme that adds extra functionality) + Dokan to create a listing website. As part of the listings you are able to review each one.

    As such I want the Reviews tab (when clicked) to redirect the user to the archive page for listings already filtered to only show the listings of the vendor that they clicked on.

    I have managed to already redirect to the archive page (see code below):

    function dokan_get_review_url( $vendor_id ) {
        $vendor_id = get_the_author_meta( 'ID' );
        $userstore = get_post_type_archive_link( 'job_listing' );
    
        return apply_filters( 'dokan_get_seller_review_url', $userstore .$vendor_id );
    }

    This changes the URL from [site url]/store/[store name]/reviews to [site url]/jobs.

    What I am struggling with is passing the Vendor ID so that the URL will be [site url]/jobs/[vendor ID].

    This URL should be generated regardless whether current user is the vendor or not or whether a user is logged in or not.

    Any advice or guidance please.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Nazmul Hassan

    (@nazmulhassann20)

    Hello @katanga1987,

    Thanks for your ticket. Actually, from our side, we are unable to help you because the Job manager plugin is using their own rewrite rules. Also $vendor_id = get_the_author_meta( 'ID' ); is not needed because we already sent the vendor_id through the parameter 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Vendor ID without using current_user’ is closed to new replies.