Posted: November 20, 2023 at 10:43 pm
|
I have registration codes in the following format. Reg Code: 20-5-1-48bb. I would like to add a prefix so that it can look like below C24-20-5-1-48bb. This is to help in easier searching where a specific year has its own prefix. Kindly assist. |
Hi there, The reg code is passed through a filter so if you are comfortable with PHP you can customize the output, take a look at the |
|
|
I am not very good at it. Is it something you could assist |
Hi there, I’m sorry, but we can not provide support for custom coding such as this, you would need to contact a developer to help you customize the reg code. We have a list of developers familiar with Event Espresso available here: https://eventespresso.com/developers/event-espresso-pros/ You can also check the article here on how to work with filters. thanks |
|
|
This reply has been marked as private. |
Hi there,
Why are you modifying a core file here? There’s a filter literally 2 lines above to allow you to customize how the Reg Code has been generated but above you are attempting to hack up the core plugin for this feature. Please remove that code, we can’t provide any support when you modify core files. — Checking into this a little more you would be better to use a different filter as we’ve deprecated the one above, so:
Here is an example of how to use a filter: https://gist.github.com/Pebblo/5672298dc0ae3eff641b00034a6163be You can add that to a custom functions plugin on your site. https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
Thanks alot or that. |
Where you able to make it work? thanks |
|
|
Yes. That worked well. |
Awesome, I’ll mark this thread resolved. Have a great week 🙂 |
|
The support post ‘Registration Code Prefix’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.