Custom div respond

This topic contains 3 replies, has 3 voices, and was last updated by  Stiofan O’Connor 8 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #56719

    soentrepreneurs
    Expired Member
    Post count: 1

    Hi !
    I would like to customize the respond div (in details>reviews) so that it shows only for a certain type of users.
    I have implemented the user types but I can’t seem to find in which .php file this content is generated, could ou help me find it ?

    Thanks !

    #56763

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    depending on what you want to do, there are few hooks in the comments template.

    If you let us know exactly what do you have in mind, we will tell you if there is a way to do it without compromising core files.

    Thanks

    #56847

    soentrepreneurs
    Expired Member
    Post count: 1

    I would like to remove the function generating the div#respond.
    I will use remove_action() in a child theme but I can’t find the hook and the function.

    #56877

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    You can use the below code as an example:

    
    
    add_filter('comment_reply_link', 'my_geodir_comment_replaylink',15,1);
    
    function my_geodir_comment_replaylink($link)
    {
    	// add code to check user here and return blank to not show.
    	if(1==1){return '';}
    
        return $link;
    }

    Thanks,

    Stiofan

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

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

Open Support Ticket