Function Reference: gd_get_comments_link

Summary

This function has not been documented yet.

Source File

gd_get_comments_link() is located in geodirectory_hooks_actions.php [Line: 2778]

Source Code

function gd_get_comments_link($comments_link, $post_id) {
    $post_type = get_post_type($post_id);

    $all_postypes = geodir_get_posttypes();
    if (in_array($post_type, $all_postypes)) {
        $comments_link = str_replace('#comments', '#reviews', $comments_link);
        $comments_link = str_replace('#respond', '#reviews', $comments_link);
    }

    return $comments_link;
}