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
July 17, 2017 at 8:54 am
Add New Note to this Reply
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
Add New Note to this Reply
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
Add New Note to this Reply
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
July 17, 2017 at 1:31 pm
Add New Note to this Reply
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 .