Disable Comment URL Linking
remove_filter( ‘comment_text’, ‘make_clickable’, 9 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
remove_filter( ‘comment_text’, ‘make_clickable’, 9 );Continue reading
if ( ! class_exists( ‘WPCode_Comment_Limit_Counter’ ) ) { class WPCode_Comment_Limit_Counter { // Update this value to change the maximum number of characters allowed in a comment. protected $comment_max_length = 1000; // Update this value to change the minimum number of…Continue reading
add_filter( ‘comment_form_default_fields’, function ($fields) { if ( isset( $fields[‘url’] ) ) { unset( $fields[‘url’] ); } return $fields; }, 150 );Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading