title: wp_schedule_event is planned but function not firing
body: <p>I have some trouble with the wp_schedule_event function and I was not able to find any solution here so far. 
  The event is triggert, atleast I see the next planned when calling <code>wp_next_scheduled( 'update_expired_events_hourly' )</code>, but when the time is reached, nothing is happening.
  Also the function is working fine when I call it manually. I tried to fire the event by calling /wp-cron.php?doing_wp_cron, but that had no effect either. </p>
  
  <p>The following code is in my themes functions.php</p>
  
  <p>Any suggestions how to fix that?</p>
  
  <p>Thank you in advance! </p>
  
  <pre><code>add_action( 'wp', 'expired_activation' );
  add_action( 'update_expired_events_hourly', 'update_expired_events' );
  
  
  
  function expired_activation(){
      if ( !wp_next_scheduled( 'update_expired_events_hourly' ) ) {
          wp_schedule_event(time(), 'hourly', 'update_expired_events_hourly');
      }
  }
  
  function update_expired_events(){
      // events query
      $args = array(
          'post_type'         =&gt; 'espresso_events',
          'post_status'       =&gt; array('publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash'),
          'post_per_page'     =&gt; -1,
          'tax_query' =&gt; array(
          array(
              'taxonomy'  =&gt; 'espresso_event_categories',
              'field'     =&gt; 'slug',  
              'terms'     =&gt; 'ee_exp', // the expired category slug
              'operator'  =&gt; 'NOT IN',
              ),
         )
      );
      $events = new WP_QUERY($args);
      $today = strtotime(current_time( "Y-m-d H:i:s", $gmt =0 )); // get current date
  
       if ( $events-&gt;have_posts() ){
           while ( $events-&gt;have_posts() ){
              $events-&gt;the_post();
  
              //get event end date
              $event_end = strtotime( espresso_event_end_date( 'Y-m-d', 'H:i:s', false, false ) ); // get event end date
  
              if( $event_end - (60*60*24) &lt; $today ){
                  wp_set_object_terms( get_the_ID(), 'ee_exp', 'espresso_event_categories', true); // Add post to expired category
              }
  
           }
       }
  }
  </code></pre>
  
  <p>I forgot to mention, that define('DISABLE_WP_CRON'); is set to false in my config.php</p>
  
  <p>---------------------- EDIT ----------------------
  The code above is working. Apparently the only thing not working was firing the event via URL (/wp-cron.php?doing_wp_cron). Sorry for that and thx for your help!</p>