admin管理员组文章数量:1410706
I am using The Events Calendar Pro, Tickets Plus and Easy Digital Downloads for a client's event site. Unfortunately they don't have an easy option to add a note to an attendee on the backend and have it export.
I was able to add an extra column to the attendee section that (I've tested) does export.
EDD has a customer notes section and I was hoping I could pull those notes into the extra column I just made in the attendee area of an event.
Here's what I have so far in my child theme's functions.php file:
# Register our extra column
add_filter( 'tribe_tickets_attendee_table_columns', function( $columns ) {
$columns['extra'] = 'My extra column';
return $columns;
} );
# Populate the extra column ($item can be used to identify the actual attendee object)
add_filter( 'tribe_events_tickets_attendees_table_column', function( $val, $item, $column ) {
static $count = 0;
if ( 'extra' === $column ) {
$val = 'Extra column value ' . ++$count;
}
return $val;
}, 10, 3 );
but I cannot figure out how to get that info specific to the customer. I was able to get ALL of the notes showing (from every customer) into that column, but that was not what I wanted... It needs to only show the notes specific to that customer. I hope that makes sense. Any help would be much appreciated!
本文标签: pluginsThe Events Calendar and Easy Digital Downloads adding customer notes to Attendee export
版权声明:本文标题:plugins - The Events Calendar and Easy Digital Downloads adding customer notes to Attendee export 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744848912a2628379.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论