WordPress at Your Fingertips
function is not described

WC_Regenerate_Images_Request::__construct() public WC 1.0

Initiate new background process.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Regenerate_Images_Request::__construct() WC 5.6.0

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

	// This is needed to prevent timeouts due to threading. See https://core.trac.wordpress.org/ticket/36534.
	@putenv( 'MAGICK_THREAD_LIMIT=1' ); // @codingStandardsIgnoreLine.

	parent::__construct();
}