Where to input hook_element_info_alter() to remove format description in date_popup form field? I want to remove format description in date_popup form field (code posted here). The solution requires me to implement hook_element_info_alter() to add a process function to the element.

I found the code I was looking for, but being a novice, I don't know where to input it?

Could someone please guide me?

I have Drupal 7.53 with Date Module Version: 7.x-2.9 installed

Thanks
You need to create a custom module.

You can follow this guide to creating your first module.

However you won't need any form code... just your element info alter, and process function. After enabling and clearing cache, you should see the desired behavior you are after.