kaipod
Forum Replies Created
-
Thank you for your example code snippet. Even though it doesn’t work, because all the events had IDs, I was able to take your example and modify it to look for events with specific names. Then I uncommented the line as instructed, and reloaded the page. Worked great. Thanks so much! Here’s the code snippet that I ended up using:
add_shortcode('em-orphaned-delete', function() {
$ret = "";
if ( class_exists( 'EM_Events' ) ) {
$list = [];
$events = EM_Events::get([ 'scope' => 'all' ] );
foreach ( $events as $event ) {
if ($event->event_name == 'Events Manager Test - Recurring event') {
$ret .= $event->name . '<br />';
$list[] = $event;
}
}
foreach ( $list as $event ) {
//$event->delete_meta();
}
}
return $ret;
} );I removed the if statement inside the foreach and your query displays all the events, including the orphaned events. Is there another way to display only the orphaned events?
The recurring event I want to delete is titled “Events Manager Test – Recurring Meetings”. Is there a way to get the specific name and delete that event?
- This reply was modified 1 year, 9 months ago by kaipod.
Hello, that query is not displaying anything, but Event Manager shows at least one recurring event being displayed that doesn’t show up in the admin panel.
Any other ideas? Is there a row in a table that I can safely delete manually?
- This reply was modified 1 year, 9 months ago by kaipod.
Thank you, but there’s still an orphaned recurring event. I used the tool to remove 3 orphaned events successfully, however this one recurring event remains. Any ideas on how to remove it?
Forum: Plugins
In reply to: [MF Gig Calendar] Wrong Date (Day -1)Just ran into this when I added a date after March 1, 2020. Will try the workaround…