Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example code for adding to the Event Espresso 4 Registrations admin list table
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action(
'AHEE__admin_wrapper__template__before_admin_page_content',
'my_custom_add_to_admin_reg_list_table'
);
function my_custom_add_to_admin_reg_list_table() {
$currentScreen = get_current_screen();
if(
$currentScreen->id === "event-espresso_page_espresso_registrations"
) {
if (
! isset($_REQUEST['action']) ||
empty($_REQUEST['action' ]) ||
$_REQUEST['action'] === 'default'
) {
// your code to add new things goes here
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.