Created
April 5, 2023 20:33
-
-
Save rafsuntaskin/758add2d678b54bb85f8d89fa9cda35c to your computer and use it in GitHub Desktop.
Disable Attendee count Glance item on Admin Dashboard from Event Tickets
This file contains hidden or 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 | |
add_action( 'plugins_loaded', function () { | |
tribe_singleton( TEC\Tickets\Admin\Glance_Items::class, TEC\Tickets\Admin\Glance_Items::class); | |
}, 1 ); | |
add_action( 'admin_init', function() { | |
remove_filter( 'dashboard_glance_items', [ tribe( TEC\Tickets\Admin\Glance_Items::class ), 'custom_glance_items_attendees' ], 10 ); | |
}, 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment