Title: check for function&#039;s existence
Last modified: August 21, 2016

---

# check for function's existence

 *  Resolved [alpha1beta](https://wordpress.org/support/users/alpha1beta/)
 * (@alpha1beta)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/check-for-functions-existence/)
 * Many People already have a function “set_html_content_type”. Its an example in
   the codex and widely used. Please wrap your function in
    `if(!function_exists('
   set_html_content_type')){`
 * Fatal error: Cannot redeclare set_html_content_type() (previously declared in
   themes/construct/functions.php:358) in plugins/sendgrid-email-delivery-simplified/
   wpsendgrid.php on line 429
 * [http://wordpress.org/plugins/sendgrid-email-delivery-simplified/](http://wordpress.org/plugins/sendgrid-email-delivery-simplified/)

Viewing 1 replies (of 1 total)

 *  Anonymous User 12640152
 * (@anonymized-12640152)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/check-for-functions-existence/#post-4399161)
 * We added this change, now you can update your plugin. Thanks for reporting it!

Viewing 1 replies (of 1 total)

The topic ‘check for function's existence’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sendgrid-email-delivery-simplified_264460.
   svg)
 * [SendGrid](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/)
 * [Active Topics](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User 12640152
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/check-for-functions-existence/#post-4399161)
 * Status: resolved