wp_stateless_send_admin_email

wp_stateless_send_admin_email

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.0.4

do_action('wp_stateless_send_admin_email') is found 2 times:

  • /lib/classes/batch/class-batch-task-manager.php line 265
          __("WP-Stateless data has been optimized for %s.\n\nIf you have WP_STATELESS_SYNC_LOG or WP_DEBUG_LOG enabled, review those logs now to review any errors that may have occurred during the synchronization process.", ud_get_stateless_media()->domain), 
          $site
        );
    
        do_action('wp_stateless_send_admin_email', $subject, $message, $state['email'] ?? '');
      }
    
      /**
       * Check if batch task has a state, so it is in progress
       * Because is_processing is true only while processing an item
       * 
    
  • /lib/classes/sync/class-background-sync.php line 367
     
        $subject = sprintf(__('WP-Stateless: %s Synchronization Complete', ud_get_stateless_media()->domain), $sync_name);
        $message = sprintf(__("WP-Stateless has finished synchronizing %s for %s.\n\nIf you have WP_STATELESS_SYNC_LOG or WP_DEBUG_LOG enabled, review those logs now to review any errors that may have occurred during the synchronization process.", ud_get_stateless_media()->domain), $sync_name, $site);
    
        do_action('wp_stateless_send_admin_email', $subject, $message);
      }
    
      /**
       * Remember currently processing item
       */
      protected function before_task($item) {
    

See this hook used in plugins: