If I understand correctly you don’t need a shortcode or a filter. Just paste your yg_yorumsuz_link_gizle
function into functions.php and call it from any template file (they all reside in your theme folder) such as single.php
, or from a plugin.
if(function_exists('yg_yorumsuz_link_gizle')){ // just in case
yg_yorumsuz_link_gizle();
}
If you’re only doing it in one place then you could even run your code inside the template file directly, without using functions.php. You need to modify the code in both cases to get rid of any $content
-related logic.
Related Posts:
- Is it possible to pull comments from facebook into your blog?
- How to deal with small scale comment spam on small commercial sites? [closed]
- Get comments for more than one post
- Add placeholder attribute to comment form fields
- human_time_diff() returns “48 years ago” for all comments
- Allow anonymous comments, but prevent spam [closed]
- Where to remove from comment’s feed?
- Why are default comments deprecated?
- Comments Reply Form
- Allow guests comments on single post
- Delete all user comments
- Why do I get email notifications about comments that WordPress has already determined are spam?
- “Leave a comment” link even when you can’t
- Display number of comment replies
- User can post only one comment per day on one page
- customize comment form
- How to check if commenter is the_author?
- Strategies for coping with hyperagressive spambots?
- How to save new comment as custom comment type?
- How to remove the “on” string before recent comments link?
- WordPress unresponsive after calling wp_update_comment()
- edit comments capability for authors
- Publish a message on facebook after having posted a comment
- How can I edit the Twenty Ten Theme to remove the comments box when a page uses a specific template?
- Highlight Author Comments issues
- Users with custom roles can’t read each other’s comments
- Why is_wp_error() is not returning false even there’s no defined error
- Separete trackbacks/pings and numbered comments
- How can I fix wp_insert_comment failure when ‘comment_content” includes slanted apostrophe in Excel csv source data
- Show comments in a popup
- Is WordPress vulnerable to “comment posting forgery”?
- Author can only see own post comment and can moderate
- How to display html in only the first level of WP comments?
- Set noindex page-comment from Pages 2, 3 and More?
- How can I convert anonymous commenters into registered users?
- How can I edit comment notification email content?
- Limit comments per user per post
- Filter In Reply comments from WordPress Admin Panel
- How can I hide the IP of registered commentators?
- How to configure WordPress + plugins to support these commenting features
- How to automatically evaluate comment content without user seeing the delay?
- Comments invisible after moving WordPress to new server, while commenting still works
- Notify post author for a new comment on his post?
- Allow the comment author to delete their own comments
- css hide all the comment reply links except the lowest nested comments
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Comments from vbulletin topic [closed]
- wp.getComments is returning nill, when i called from my iphone app [closed]
- Admin can enter JavaScript – potential security risk?
- custom hooks before a comment is updated/edited in the database
- Replace comments with a dummy text
- How can I get list of emails of users who commented on a post?
- Disable only the comment form/box itself?
- anyone can help me to know whats going wrong? [closed]
- How to hide wordpress post comment form for specific role
- How to customize the title from comments form?
- How to display comment meta under each comment content
- Why there is still an approved comment after deleting all?
- Custom comment field not showing when logged-in
- Comments and post dates not showing up correctly on “posts page”
- get_comment_author_link not working properly
- Comments numbering on multiple pages
- disable reply comments on depth equals 2
- Problem with comment box
- How to show last comment on hover?
- Users moderate own comments
- Problem in getting user comments permalinks
- Permalink structure and dedicated comment pages
- show comment with statuse
- Critical error – can’t post comments
- Is there a way to only allow certain user ranks to comment on a post
- How to add code for wp-comments-post.php over functions.php?
- Is there a way to export WordPress comments to a non-wordpress, HTML coded site?
- WordPress Custom Local Avatar not showing in comments
- Create another comment section for WordPress
- How to get the current post ID in comments.php?
- Change commenters email to display name
- wp list all users who haven’t commented on a post
- Adding buttons to wp-admin/edit-comments
- Faulty comment.php, comments won’t show up after posting?
- Change hyperlink to User Registration page instead of WordPress login page
- How to enable reply button on mostly deeply-nested comments? [closed]
- Why is a old comment reply comment appearing at end of comment list as well
- Adding Parameters to get_comment
- Comment-Meta doesn’t work with latest wordpress update
- Sort post by last commented
- Listing comment author role code problem
- Disqus resetting comment count to 0
- How to allow special characters in comment name?
- Deleting users do not deletes coments
- Auto-deleting comments that trigger the blacklist
- modifying the comment form
- Show count of all comments by meta_value from a users posts
- Migrate comments to Disqus
- Where to insert get_comments?
- Overflow and Comments
- How to modify the comments list in WP & BuddyPress? [closed]
- Is there a plugin that can replace WP comments with Facebook comments as used by TechCrunch? [closed]
- how to remove indent from twently eleven comments reply
- How to use Disqus for some categories, and FB comments for others?