Disable WordPress Comment Author Name

Switty uses a standard WordPress comments implementation, so the following, added to your proper child theme functions.php, will erase comment author names. The function could be written as an anonymous function – so very short – but I figured you just might want to return something in place of the name, plus anonymous functions are … Read more

how to remove WordPress default comment system

Add this code to your functions.php it removes the comment hooks that are default with WordPress. If you ever want to reenable the comments just remove this code from your functions.php // Add to existing function.php file // Disable support for comments and trackbacks in post types function df_disable_comments_post_types_support() { $post_types = get_post_types(); foreach ($post_types … Read more

Full Front End, AJAX comment system and comment reply script

<script> var addComment = { settings: function( parentId, postId ) { var t = $(this), commentDivName = $(‘#comment-‘+parentId), formDivName = $(‘#commentForm-‘+postId), formReplyDivName = $(‘#commentReplyForm-‘+parentId), postDivName = $(‘#post-‘+postId), theform = formDivName.find(‘form.comment-form’); if( !t.length || !commentDivName.length || !formDivName.length || !postDivName.length ) { return; } if(!theform.length){ $(postDivName).find(‘[id^=commentReplyForm-]’).each(function(){ if($(this).find(‘form.comment-form’).length){ formDivName = $(‘#’+$(this).attr(‘id’)); } }); theform = formDivName.find(‘form.comment-form’); } theform.find(‘input[name=parent]’).val(parentId); … Read more

Moving FB comments at the end of page

From the plugin’s user manual. Curent_url – Type the page URL from where you need to show Facebook comments So you will have to change the current URL which is (http://developers.facebook.com/docs/plugins/comments/) to your real current URL. global $wp; $current_url = home_url( add_query_arg( array(), $wp->request ) ); echo do_shortcode(‘[wpdevart_facebook_comment facebook_app_id=”12345678910111213″ curent_url=”‘.$current_url.’ ” order_type=”social” title_text=”Facebook Comment” title_text_color=”#000000″ … Read more

Sent comments notifications to multiple users

Something like this should work: add_filter(‘comment_notification_recipients’, ‘override_comment_notice_repicient’, 10, 2); function override_comment_notice_repicient($emails, $comment_id) { $admins = get_users( array( ‘role__in’ => array(‘administrator’), ) ); foreach ( $admins as $user ) { $emails[] = $user->user_email; } return ($emails); }