Support

Home Forums Event Espresso Premium Need to place some code in custom location of EE4

Need to place some code in custom location of EE4

Posted: June 23, 2016 at 4:53 am


Nuno

June 23, 2016 at 4:53 am

In EE4 , i am in need to place some code in some custom locations where no action hook or filter is provided. For example, i want to some code at the bottom of registration checkout page, but since there is no action provided, i could not do that. In that case , what is your expert opinion to do that?

Thank you.


Tony

  • Support Staff

June 23, 2016 at 5:20 am

Hi Marcio,

There are hooks to output code at the bottom of the checkout page.

AHEE__SPCO__after_registration_steps

Or

AHEE__SPCO__reg_form_footer

It just depends where and when you want to output data.

EE has tons of hooks available throughout the plugin so there will usually be a hook available to output data where you need. Templating is also available for more in-depth customization’s in specific sections however using the hooks is the most recommended method.

I would recommend installing Debug Bar with the Actions and Filters Add-on which shows all of the hooks ran the page you are viewing so you can find a hook that suits.

As the Registration checkout page is a standard page with an EE shortcode you can also add content directly to the page after the shortcode, however again it really depends on what you are looking to do.

If you do find a section of EE you need a hook adding to you can open up a thread and request one be added there, we can then open an internal ticket to discuss adding a hook if one is not available 🙂

The support post ‘Need to place some code in custom location of EE4’ 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