• Resolved sslv

    (@sslv)


    Hi,

    I’m trying to figure out what is the corresponding URL for deleting a Listing.
    Each account would eventully have many shops / Listing and I want to provide a Manage Shop page so that the users can see their own shops and be able to View, Edit and Delete their Listing. Here is what it looks like so far:
    https://paste.pics/87c2a7cb5d3e52d18a4182adf0f88525

    I manage to make the View and Edit buttons working. Each button will direct to the corresponding page, but I don’t know how the delete button works.

    Code used for View and Edit Listing:

    
    $view_BS_loction_URL = get_the_permalink();
    $edit_BS_location_URL = "my-domain/add-listing/?listing_type=gd_place&pid=" . $BS_location_id;
    

    I found out that there is a GD > Author Actions Block and I added it in profile: This will show edit and delete button. In front end the delete button looks like this:

    
    <a href="javascript:void(0);" class="gd_user_action delete_link btn mt-1 mb-1 btn-sm btn-danger text-white" onclick="gd_delete_post(773);"><i class="fas fa-trash"></i> Delete</a>
    

    How does that work? Does it append the url to be :
    my-domain/add-listing/?listing_type=gd_place&pid=773 ?
    my-domain/?listing_type=gd_place&pid=

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is the link to delete a gd_listing?’ is closed to new replies.