Created
November 22, 2016 19:46
-
-
Save joshfeck/7bfda95067ceb6f5b52ab271411a8eb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function my_event_table_head( $defaults, $screen ) { | |
$defaults['kurs'] = 'Kurs'; | |
return $defaults; | |
} | |
add_filter( 'FHEE_manage_toplevel_page_espresso_events_columns', 'my_event_table_head', 10, 2 ); | |
function my_event_table_content( $event, $screen ) { | |
if ( ! $event instanceof EE_Event ) { | |
return ''; | |
} | |
echo get_post_meta( $event->ID(), 'meta-box-text', true ); | |
} | |
add_action( 'AHEE__EE_Admin_List_Table__column_kurs__toplevel_page_espresso_events', 'my_event_table_content', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment