WordPress at Your Fingertips
function is not described

WC_Background_Emailer::__construct() public WC 1.0

Initiate new background process.

{} It's a method of the class: WC_Background_Emailer{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Background_Emailer = new WC_Background_Emailer();
$WC_Background_Emailer->__construct();

Code of WC_Background_Emailer::__construct() WC 5.7.1

public function __construct() {
	// Uses unique prefix per blog so each blog has separate queue.
	$this->prefix = 'wp_' . get_current_blog_id();
	$this->action = 'wc_emailer';

	// Dispatch queue after shutdown.
	add_action( 'shutdown', array( $this, 'dispatch_queue' ), 100 );

	parent::__construct();
}