HELP: custom comments link with plugin
-
Hello,
I am trying to modify the comments link generated by wordpress, but I can’t seem to get the plugin to work. I am trying to filter/replace the “get_comments_link” function. If I change the source file, I get the change I want, but I can’t seem to get the plugin to do anything – the original function always gets called instead.What am I doing wrong??
//================================================================== // Comments Link Replacement //================================================================== function get_comments_link_hijack() { ... } /* THE ORIGINAL, DEFINED IN comment-template.php function get_comments_link() { return get_permalink() . '#comments'; } */ // Create hook for wordpress add_filter('get_comments_link','get_comments_link_hijack');
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘HELP: custom comments link with plugin’ is closed to new replies.