Created
September 22, 2024 15:14
-
-
Save erubio0/9bc28d5f2a57f326454e18334cec6b4d to your computer and use it in GitHub Desktop.
Anonymous Comments Form (Wordpress plugin) - Disables email, url and author fields on comments form.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Anonymous Comments Form | |
* Description: Disables email, url and author fields on comments form. | |
* Version: 1.0 | |
* Author: Emilio Rubio Rigo | |
* Author URI: https://emilioblog.com | |
* License: GPLv3 | |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html | |
*/ | |
add_filter('comment_form_field_email', '__return_false'); | |
add_filter('comment_form_field_url', '__return_false'); | |
add_filter('comment_form_field_author', '__return_false'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment