I was having an issue with link spam in a Gravity Forms paragraph text field. Here is a code snippet that validates the field and prevents link submissions. Place the code in your theme’s functions.php file. Replace ‘[form number]’ with your form number. Replace ‘[field number] with the field number.
I needed to remove several of the options from the product type dropdown in WooCommerce. This may not be the correct way to do it but it does hide them. From This: To This: Code: