remove_menu( 'comments' ); return $admin_bar; } function comments_number_always_zero() { return 0; } function change_comments_template() { global $wp_query; $wp_query->comments = array(); $wp_query->comments_by_type = array(); $wp_query->comment_count = '0'; $wp_query->post->comment_count = '0'; $wp_query->post->comment_status = 'closed'; $wp_query->queried_object->comment_count = '0'; $wp_query->queried_object->comment_status = 'closed'; return plugin_dir_path( __FILE__ ) . 'template-comments.php'; } function remove_comments_widget() { if ( function_exists( 'unregister_widget' ) ) { unregister_widget( 'WP_Widget_Recent_Comments' ); } } function remove_dashboard_comments_widget() { remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); } function user_contactmethods( $contact_methods ) { $contact_methods['adn'] = __('App.net Username', 'adn-comments'); return $contact_methods; } } new ADN_Comments(); endif;