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.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.