Title: Disable Custom PHP &amp; JavaScript snippets
Last modified: October 17, 2022

---

# Disable Custom PHP & JavaScript snippets

 *  Resolved [buddywhatshisname](https://wordpress.org/support/users/vhmarkgmailcom/)
 * (@vhmarkgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/disable-custom-php-javascript-snippets/)
 * Can we please have a wp-config.php constant to disable “Custom PHP & JavaScript
   snippets”? We run a secured WP multisite where allowing admins to run arbitrary
   PHP or JS is a massive security hole.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Alimir](https://wordpress.org/support/users/alimir/)
 * (@alimir)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/disable-custom-php-javascript-snippets/#post-16108901)
 * Hey [@vhmarkgmailcom](https://wordpress.org/support/users/vhmarkgmailcom/)
    Oops!
   You’re right, we will fix this in the next update by using following constant:
 * `define( 'WP_ULIKE_DISABLE_CODE_SNIPPETS', true );`
 * But until then, you can try to disable following hook at “wp-content/plugins/
   wp-ulike/includes/hooks/general.php”:
 * `add_action( 'wp_ulike_loaded', 'wp_ulike_run_php_snippets' );`
    -  This reply was modified 3 years, 7 months ago by [Alimir](https://wordpress.org/support/users/alimir/).

Viewing 1 replies (of 1 total)

The topic ‘Disable Custom PHP & JavaScript snippets’ is closed to new replies.

 * ![](https://ps.w.org/wp-ulike/assets/icon.svg?rev=2453069)
 * [WP ULike – Like & Dislike Buttons for Engagement and Feedback](https://wordpress.org/plugins/wp-ulike/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ulike/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ulike/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ulike/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ulike/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ulike/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alimir](https://wordpress.org/support/users/alimir/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/disable-custom-php-javascript-snippets/#post-16108901)
 * Status: resolved