Title: self written functions error
Last modified: March 8, 2021

---

# self written functions error

 *  [christopher](https://wordpress.org/support/users/christpher/)
 * (@christpher)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/self-written-functions-error/)
 * Hello everyone,
 * i have a problem concering self written functions. Whenever i write a function
   and insert the shortcode in the page it gives me:”There has been a critical error
   on your website.”
 * I use Elementor and everything works just fine, except when i use the keyword
   function.
    Can anyone help me?
 * Thanks in advance

Viewing 1 replies (of 1 total)

 *  [sumaiyaf](https://wordpress.org/support/users/sumaiyaf/)
 * (@sumaiyaf)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/self-written-functions-error/#post-14227409)
 * Hi,
    Using functions in Insert PHP Code Snippet works fine.The error may be due
   to the errors in functions. please share the code or drop a mail at [support@xyzscripts.com](https://wordpress.org/support/topic/self-written-functions-error/support@xyzscripts.com?output_format=md)
   or contact our support desk at [http://xyzscripts.com/members/support/](http://xyzscripts.com/members/support/)

Viewing 1 replies (of 1 total)

The topic ‘self written functions error’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)

 * 1 reply
 * 2 participants
 * Last reply from: [sumaiyaf](https://wordpress.org/support/users/sumaiyaf/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/self-written-functions-error/#post-14227409)
 * Status: not resolved