Remove all links in a post content of wordpress

Edit functions.php,  add the following code: add_filter(‘the_content’, ‘removelink_content’,1); function removelink_content($content = ”) { preg_match_all(“#<a(.*?)>(.*?)</a>#i”,$content, $matches); $num = count($matches[0]);for($i = 0;$i < $num;$i++){ $content = str_replace($matches[0][$i] , $matches[2][$i] , $content); } return $content; }

Remove Any Unnecessary Files of WordPress

How can we remove the /wp-includes/js/comment-reply.js?ver=20090102 script tag? 2 steps: first edit wp-includes/functions.php, add the follow code at the end of functions.php: function clean_header(){ wp_deregister_script( ‘comment-reply’ ); } second, edit wp-includes/default-filters.php, add the next line at proper place: add_action(‘init’,’clean_header’);