Disable edit post

This topic contains 1 reply, has 2 voices, and was last updated by  Stiofan O’Connor 7 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #368905

    Anonymous

    Hello,

    Is there anyway to disable Edit Post once a user adds a listing? I don;t want to get rid of the Favorite under user links section as well, just the get rid of the ability to edit post.

    Thanks

    Liz

    #368915

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Liz,

    Not sure why you would want to but this code snippet should do it:

    
    
    add_action('geodir_before_edit_post_link','_start_remove_edit_link',0);
    function _start_remove_edit_link(){
    	ob_start(); // Start buffering;
    }
    add_action('geodir_after_edit_post_link','_end_remove_edit_link',0);
    function _end_remove_edit_link(){
    	ob_get_clean(); // remove content
    }

    Thanks,

    Stiofan

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount