Title: draco_ghost's Replies | WordPress.org

---

# draco_ghost

  [  ](https://wordpress.org/support/users/draco_ghost/)

 *   [Profile](https://wordpress.org/support/users/draco_ghost/)
 *   [Topics Started](https://wordpress.org/support/users/draco_ghost/topics/)
 *   [Replies Created](https://wordpress.org/support/users/draco_ghost/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/draco_ghost/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/draco_ghost/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/draco_ghost/engagements/)
 *   [Favorites](https://wordpress.org/support/users/draco_ghost/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Calendar - Accessible Event Manager] The mc-event posts are not deleted](https://wordpress.org/support/topic/the-mc-event-posts-are-not-deleted/)
 *  Thread Starter [draco_ghost](https://wordpress.org/support/users/draco_ghost/)
 * (@draco_ghost)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the-mc-event-posts-are-not-deleted/#post-6290800)
 * Yes, that is right.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Calendar - Accessible Event Manager] The mc-event posts are not deleted](https://wordpress.org/support/topic/the-mc-event-posts-are-not-deleted/)
 *  Thread Starter [draco_ghost](https://wordpress.org/support/users/draco_ghost/)
 * (@draco_ghost)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the-mc-event-posts-are-not-deleted/#post-6290711)
 * This is only happening when i checked the event or the events and click the button
   to delete, if i choose individually the option to delete `<a href="MY_TEMPLATE/
   wp-admin/admin.php?page=my-calendar-manage&mode=delete&event_id=19">Borrar</a
   >`, the events are deleted in both tables.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Calendar - Accessible Event Manager] override function](https://wordpress.org/support/topic/override-function-2/)
 *  Thread Starter [draco_ghost](https://wordpress.org/support/users/draco_ghost/)
 * (@draco_ghost)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/override-function-2/#post-6281352)
 * yes thats right,i dont need $event, thanks for your time and help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Calendar - Accessible Event Manager] override function](https://wordpress.org/support/topic/override-function-2/)
 *  Thread Starter [draco_ghost](https://wordpress.org/support/users/draco_ghost/)
 * (@draco_ghost)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/override-function-2/#post-6281337)
 * \`can you add an extra argument $event ?
    Because in my case, i need to know 
   the category of the event.
 * apply_filters( ‘mc_event_mail_bcc’, get_option( ‘mc_event_mail_bcc’ ), $details,
   $event);
 * I do this way
    in my functions.php
 *     ```
       function custom_mc_event_mail_bcc($details,$event){
   
           $category_name = (string)$event['category'];
           $category_name = strtolower($category_name);
   
           if($category_name == "intermedio / avanzado"){
             $category_name = "int_ava";
           }
   
           $args = array(
             'blog_id'      => $GLOBALS['blog_id'],
             'role'         => $category_name,
            ); 
   
           if(isset($args)){
             $blogusers = get_users( $args) ;
             $mail_users = "";
             foreach ( $blogusers as $user ) {
               $mail_users .= "\r\n".esc_html( $user->user_email )."\r\n";
             }
           }
           return $details." ".$mail_users;
       }
   
       add_filter('mc_event_mail_bcc', 'custom_mc_event_mail_bcc',10,3);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Calendar - Accessible Event Manager] override function](https://wordpress.org/support/topic/override-function-2/)
 *  Thread Starter [draco_ghost](https://wordpress.org/support/users/draco_ghost/)
 * (@draco_ghost)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/override-function-2/#post-6281142)
 * I just need to add some emails dynamically to BCC, depending of the category 
   of the event and the role of the users, without typing in the area text of the
   settings of the plugin, is just this
 *  $bcc .= $mail_users; // new line, string of mails
 *  if ( $bcc ) {
    $bcc = explode( PHP_EOL, $bcc ); foreach ( $bcc as $b ) { $b 
   = trim( $b ); if ( is_email( $b ) ) { $headers[] = “Bcc: $b”; } }

Viewing 5 replies - 1 through 5 (of 5 total)