Title: function modalCustomizer() error
Last modified: May 6, 2020

---

# function modalCustomizer() error

 *  Resolved [Foococo](https://wordpress.org/support/users/simplefootball/)
 * (@simplefootball)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-modalcustomizer-error/)
 * Hi,
 * I noticed after installing your (great) plugin that an error was showing in the
   Chrome DevTools:
 * Uncaught ReferenceError: wp is not defined – wp-post-modal-public.js:106
 * Maybe you want to have a look at this and fix it or maybe it’s just on my install…
 * Best regards

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [6 years ago](https://wordpress.org/support/topic/function-modalcustomizer-error/#post-12824470)
 * I’ve seen this happen before, but could not figure out specifically why. It depends
   on your specific installation though. There must be something unique about your
   site that is causing that.
 * If you figure out, it would be great if you posted it here and I could create
   a global solution.
 *  Thread Starter [Foococo](https://wordpress.org/support/users/simplefootball/)
 * (@simplefootball)
 * [6 years ago](https://wordpress.org/support/topic/function-modalcustomizer-error/#post-12826155)
 * Hi,
 * I did find out the reason and this was because of my caching plugin (in my case
   WP Rocket).
 * I had the “Disable WP Embeds” turned on and by switching it off errors disappeared.
 * I don’t know if it’s possible for your plugin to work without WP Embeds, but 
   at least you now know where to point out future similar request and/or where 
   to start to work on to have this error solved.
 * Best regards
 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [6 years ago](https://wordpress.org/support/topic/function-modalcustomizer-error/#post-12827612)
 * Nice! Thank you for posting your findings.
 * Are you familiar with what the purpose of disabling WP Embeds is for?
 *  Thread Starter [Foococo](https://wordpress.org/support/users/simplefootball/)
 * (@simplefootball)
 * [6 years ago](https://wordpress.org/support/topic/function-modalcustomizer-error/#post-12827658)
 * It’s purely for optimization: it avoids one http request + one file to be downloaded.
   Given the size of the file I really believe this is minor.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘function modalCustomizer() error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-modal.svg)
 * [WP Post Popup](https://wordpress.org/plugins/wp-post-modal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-modal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-modal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-modal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-modal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-modal/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Foococo](https://wordpress.org/support/users/simplefootball/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/function-modalcustomizer-error/#post-12827658)
 * Status: resolved