Title: Fatal error: Call to undefined function wp_add_inline_script()
Last modified: May 13, 2020

---

# Fatal error: Call to undefined function wp_add_inline_script()

 *  Resolved [LikeWomans](https://wordpress.org/support/users/likewomans/)
 * (@likewomans)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_add_inline_script/)
 * Fatal error: Uncaught Error: Call to undefined function wp_add_inline_script()
 * When I open this Page [https://site.ru/wp-admin/admin.php?page=ctc-page](https://site.ru/wp-admin/admin.php?page=ctc-page)
    -  This topic was modified 6 years ago by [LikeWomans](https://wordpress.org/support/users/likewomans/).

Viewing 1 replies (of 1 total)

 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_add_inline_script/#post-12886537)
 * Hello there,
 * Please delete and then reinstall the plugin — perhaps some of the plugin files
   did not get copied correctly.
 * Best of regards,
    Gabriel
 * Later Edit: actually, it looks like the problem might be in your WordPress core.
   The wp_add_inline_script is a default WordPress function:
 * [https://developer.wordpress.org/reference/functions/wp_add_inline_script/](https://developer.wordpress.org/reference/functions/wp_add_inline_script/)
 * Can you check your wp-includes/functions.wp-scripts.php and see if it’s there?
    -  This reply was modified 6 years ago by [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/).

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Call to undefined function wp_add_inline_script()’ is closed
to new replies.

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_add_inline_script/#post-12886537)
 * Status: resolved