Change allowed HTML tags for comments

You are changing the $allowedtags too late. On the last line, add_filter should be called for pre_comment_content instead of comment_post, and also, use different priority, something like this: add_filter(‘pre_comment_content’, ‘custom_allowed_tags_comment’, 9);

Enable Recent Comments widget to display comments on attachment posts

you can use the widget_comments_args filter to modify the default args of the recent comments widget: function wpse80087_widget_comments_args( $args ) { $args = array( ‘number’ => 5, ‘post_type’ => ‘attachment’, ‘status’ => ‘approve’, ‘post_status’ => ‘inherit’ ); return $args; } add_filter( ‘widget_comments_args’, ‘wpse80087_widget_comments_args’, 10, 1 );

Customize reply form different to comment form

Luckily, I was able to solve this. The problem was in #comments ul li p, so I deleted the margin and text-align properties from there, which were conflicting with the reply comment form, and modified other parts of the css file to achieve the same result. The solution might vary in other cases, but I … Read more

Change language of comments template

There are two options: Replace all default strings for the comment form. Look at wp-includes/comment-template.php for available filters (there are many). Set your blog’s default language to English, install the plugin WP Native Dashboard, load the Italian language files and set the admin language to Italian. Here is a screen shot of the plugin settings:

How can I change the label “Comments” to “Review” everywhere in the WP installation without translation

You can try the gettext filter. According to the Codex: This filter hook is applied to the translated text by the internationalization functions (__(), _e(), _x(), etc.). This filter is always applied even if internationalization is not in effect, and if the text domain has not been loaded. Here’s an example: function custom_gettext( $translated_text, $untranslated_text, … Read more

Passing arguments to wp_list_comments callback function

Finally I figured it out. you may simply add your arguments to the wp_list_comments as associative key => value pairs like this: $args = array( ‘callback’ => ‘my_callback’, ‘avatar_size’ => 48, ‘type’ => ‘comment’, ‘arg1’ => $arg1 ); wp_list_comments( $args ); and then in your my_callback you have: function my_callback( $comment, $args, $depth ) where … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)