Support

Home Forums Event Espresso Premium Override admin template

Override admin template

Posted: July 17, 2017 at 8:40 am

Viewing 4 reply threads


Torontot

July 17, 2017 at 8:40 am

Hi support,

I saw this topic here:

https://eventespresso.com/topic/how-to-override-admin_pages-templates/

I would like to know how to do the same and override this template: reg_admin_register_new_attendee_step_content.template.php

Looks like the function I need to hook is this: _get_registration_step_content()

Let me know. Thanks!


Tony

  • Support Staff

July 17, 2017 at 8:54 am

Hi there,

In the previous thread, Josh noted that the admin templates are not overridable, the same applies to the above template.

Can you let me know what it is within the template you are looking to change?


Torontot

July 17, 2017 at 9:14 am

Sorry – I misunderstood. I thought the filter was a way around.

I am adding a drop-down of wp_users and function to use it to pre-populate the fields.


Torontot

July 17, 2017 at 9:18 am

Correction – better explanation would be…

I am adding a drop-down of wp_users and a function to use it to populate the fields for easy manual registrations.


Josh

  • Support Staff

July 17, 2017 at 1:31 pm

Hi there,

Here’s an example that show how to use some of the hooks that fire on that page:

add_action( 'AHEE__Form_Section_Layout__ee_spco_attendee_information_reg_step_form', 'my_custom_function' );
function my_custom_function() {
  if( is_admin() ) {
    add_action( 'AHEE__admin_wrapper__template__before_admin_page_content', 'my_custom_function_template_hook' );
  };
}
function my_custom_function_template_hook() {
  // your custom PHP code goes here
}

You can add the above to a functions plugin.

Viewing 4 reply threads

The support post ‘Override admin template’ 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