[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-admin/includes/settings/batches/delete_old_mails/ -> update.php (source)

   1  <?php // delete_old_mails
   2  
   3  if ( !( function_exists( 'current_user_can' ) && current_user_can( MP_AdminPage::capability ) ) ) die( 'Access denied' );
   4  
   5  if ( isset( MP_AdminPage::$pst_['batch_delete_old_mails'] ) ) 
   6  {
   7      $batch_delete_old_mails = MP_AdminPage::$pst_['batch_delete_old_mails'];
   8  
   9      $old_delete_old_mails = get_option( MailPress_delete_old_mails::option_name );
  10  
  11      update_option( MailPress_delete_old_mails::option_name, $batch_delete_old_mails );
  12  
  13      if ( !isset( $old_delete_old_mails['batch_mode'] ) )
  14      {
  15          $old_delete_old_mails['batch_mode'] = '';
  16      }
  17  
  18      if ( $old_delete_old_mails['batch_mode'] != $batch_delete_old_mails['batch_mode'] )
  19      {
  20          if ( 'wpcron' != $batch_delete_old_mails['batch_mode'] )
  21          {
  22              wp_clear_scheduled_hook( MailPress_delete_old_mails::process_name );
  23          }
  24          else
  25          {
  26              MailPress_delete_old_mails::schedule();
  27          }
  28      }
  29  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1