Title: php snippets
Last modified: August 7, 2017

---

# php snippets

 *  Resolved [auludag](https://wordpress.org/support/users/auludag/)
 * (@auludag)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-snippets-2/)
 * hi,
 * thanks for this useful plugin. (i wanted to buy even pro version but well it 
   is above my head currently 🙂 )
 * do you plan to add php snippets features as well so we can add php snippets without
   changing functions.php of child theme?

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

 *  Plugin Author [SilkyPress](https://wordpress.org/support/users/diana_burduja/)
 * (@diana_burduja)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-snippets-2/#post-9394006)
 * Hi,
 * originally we were also planning to have PHP snippets. There is still some commented
   code in the plugin with an unfinished implementation for such a feature. We stopped
   because of security concerns.
 * If somebody manages to write CSS or JS on your website without your permission,
   that is bad enough and it would hurt the website’s visitors, but it’s easy to
   mitigate: only delete the CSS and JS codes. On the other hand, if somebody manages
   to write PHP codes without your permissions, then the website is entirely compromised,
   as well as all the other websites on your server.
 * Of course we are careful about possible vulnerabilities and implemented all the
   WordPress recommendations and best practices in order to keep the websites free
   from being hacked. In case there is a vulnerability found in the future, then
   allowing PHP codes to be executed creates a risk too high to justify such a feature.
 * I know there are other plugins that allow PHP snippets on the website. It is 
   their choice to handle such risks. We chose to limit the plugin to CSS, JS and
   HTML codes.
 *  Thread Starter [auludag](https://wordpress.org/support/users/auludag/)
 * (@auludag)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-snippets-2/#post-9464067)
 * thanks for sharing your approach.

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

The topic ‘php snippets’ is closed to new replies.

 * ![](https://ps.w.org/custom-css-js/assets/icon-128x128.png?rev=1303730)
 * [Simple Custom CSS and JS](https://wordpress.org/plugins/custom-css-js/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-css-js/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-js/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-js/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [auludag](https://wordpress.org/support/users/auludag/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-snippets-2/#post-9464067)
 * Status: resolved