Title: Issue with adding custom rule
Last modified: January 22, 2019

---

# Issue with adding custom rule

 *  [devdtseweb92](https://wordpress.org/support/users/devdtseweb92/)
 * (@devdtseweb92)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/issue-with-adding-custom-rule/)
 * Hi,
    I try to add my custom rule according to what you wrote on the readme.txt
   file, but unfortunately it doesn’t work… I have some questions :
 * What do you mean exactly by “First, you have to create a custom rule in the **
   filename structure** option using curly braces, like **{my_custom_rule}**. You
   just have to write it, in any position you want.”
    – How and where do you “create”
   a custom rule exactly ? – The filename structure : do you mean the class-filename-
   strucure-option file ? – And if yes, does it mean I will not be able to update
   the plugin anymore since I’ve modified it ?
 * Thanks in advance, and by the way great plugin !!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pablo Pacheco](https://wordpress.org/support/users/karzin/)
 * (@karzin)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/issue-with-adding-custom-rule/#post-11121837)
 * Hi,
    Thanks first of all 🙂
 * – You have to write it here first, at **filename structure** option:
    [https://ps.w.org/file-renaming-on-upload/assets/screenshot-2.png?rev=1847446](https://ps.w.org/file-renaming-on-upload/assets/screenshot-2.png?rev=1847446)
 * – You can create the rule on your functions.php for example or on a custom plugin
 * – If you write the custom function on your functions.php you will lose it if 
   you update the theme, so the best place to create it would be on a child theme
   or on a custom plugin

Viewing 1 replies (of 1 total)

The topic ‘Issue with adding custom rule’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-renaming-on-upload_c2e0f1.svg)
 * [Rename Media Files: Improve Your WordPress SEO](https://wordpress.org/plugins/file-renaming-on-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/file-renaming-on-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/file-renaming-on-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/file-renaming-on-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-renaming-on-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-renaming-on-upload/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pablo Pacheco](https://wordpress.org/support/users/karzin/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/issue-with-adding-custom-rule/#post-11121837)
 * Status: not resolved