WordPress comment section is often tagged with spam URL links. This article gives you the steps to remove these URLs from the comment section with a simple php function.
To edit your Theme setting file to disable URL in the comments section , follow the steps below :
On the Theme Editor, select the Theme you want to edit from the dropdown:
Click on the file named “functions.php”:
Insert the following code at the end of the functions.php file:
function disable_comment_URL_field($fields) { unset($fields['url']); return $fields; } add_filter('comment_form_default_fields','disable_comment_URL_field');
For more information about the please visit the following link:https://wordpress.org/plugins/theme-editor/
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.