Support

Home Forums Event Espresso Premium [EE4] Change Registration Code format/pattern

[EE4] Change Registration Code format/pattern

Posted: June 11, 2014 at 4:32 am

Viewing 0 reply threads


Budi Rianto

June 11, 2014 at 4:32 am

Hi All,

How do I change the registration code format/pattern?
I’d like it in number only and without dash.
Or, just without dash if the prior one is not possible.
Thank you.

Regards,
Budi


Dean

June 11, 2014 at 6:27 am

Hi Budi,

This should be possible by using a custom function.

There is a filter for it: FHEE__EE_Registration___generate_new_reg_code__new_reg_code

The entire filter is:

$new_reg_code = apply_filters( 'FHEE__EE_Registration___generate_new_reg_code__new_reg_code', $new_reg_code, $this );	

This can be found in /wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Registration.class.php on line 1088 in function _generate_new_reg_code()

  • This reply was modified 10 years, 5 months ago by Dean. Reason: syntax highlighting fail
  • This reply was modified 10 years, 5 months ago by Dean. Reason: and again
Viewing 0 reply threads

The support post ‘[EE4] Change Registration Code format/pattern’ 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.

Event Espresso