Title: my-hacks.php
Last modified: August 18, 2016

---

# my-hacks.php

 *  [WhyNot](https://wordpress.org/support/users/whynot/)
 * (@whynot)
 * [19 years ago](https://wordpress.org/support/topic/my-hacksphp/)
 * Trying to unsuccesfully edit “kses.php” in order to give commenters access to
   more allowed HTML tags, I notice a comment line saying you can modify the tags
   allowed in the “my-hacks.php” file.
 * Trouble is I cannot find this file. Does it have to be created? If so, is there
   a sample I can get hold of, with some explanation of the syntax?
 * My aim is to give commenters acess to a lot more tags than the very basic ones
   allowed to them by default.

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years ago](https://wordpress.org/support/topic/my-hacksphp/#post-579562)
 * my-hacks.php is created by you, yes, and using it requires nothing more than 
   creating it, and putting some php in it. The file also needs to go in the root
   of your WP install, ie, where your wp-config.php is.
 * One other thing you do need to do though, is enable it in your wp-admin area.
   It should be under Options –> Miscellaneous:
 * Use legacy my-hacks.php file support
 *  Thread Starter [WhyNot](https://wordpress.org/support/users/whynot/)
 * (@whynot)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/my-hacksphp/#post-579657)
 * Ok, thank you. When you say “use legacy my-hacks.php file support” … what does
   it mean exactly?
 * I’m no php programmer, but there are a few things which, when I see a php file
   I can hope, praying hard, to modify, and many others where I have no clue whatsoever.
 * I am hoping with something with some examples of code. I tried to fiddle around
   with the 2 lines in the kses.php files, leaving the first one alone, and trying
   to copy bits and pieces of it to the second line, and even tried to copy the 
   entire first line replacing the second line with it but causes the blog to start
   with an error on line such and such.
 * What I am getting at is that if there isn’t some kind of basic tutorial on the
   syntax to do what I want, I will be helpless.
 * I mostly want to be able to give commenters the ability to add pictures (img 
   src= ….) , font size choice, and ordered/unordered lists.
 *  [ladynada](https://wordpress.org/support/users/ladynada/)
 * (@ladynada)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/my-hacksphp/#post-579863)
 * I would be interested in an example my-hacks.php file that adds back the class
   and styling.
 * thanks,
    nada

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

The topic ‘my-hacks.php’ is closed to new replies.

## Tags

 * [kses.php](https://wordpress.org/support/topic-tag/kses-php/)
 * [my-hacks.php](https://wordpress.org/support/topic-tag/my-hacks-php/)

 * 3 replies
 * 3 participants
 * Last reply from: [ladynada](https://wordpress.org/support/users/ladynada/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/my-hacksphp/#post-579863)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
