Title: Inline code and CSP
Last modified: March 23, 2023

---

# Inline code and CSP

 *  [vinegar](https://wordpress.org/support/users/vinegar/)
 * (@vinegar)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/inline-code-and-csp/)
 * This plugin directly outputs inline javascript and styles which can make life
   difficult for using Content Security Policy. Can this be changed to use external
   resources or use wp_add_inline_* functions so that they can be properly filtered/
   managed?

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 years, 2 months ago](https://wordpress.org/support/topic/inline-code-and-csp/#post-16589340)
 * I’ll see what I can do. There are some little-known functions in WordPress that
   should assist with this, eg `wp_print_inline_script_tag()`, but I’ll need to 
   look into it.

Viewing 1 replies (of 1 total)

The topic ‘Inline code and CSP’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/inline-code-and-csp/#post-16589340)
 * Status: not resolved