WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rulesprotectedWC 3.0.0

Deprecated since 3.2.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Schedule to flush rewrite rules.

Method of the class: WC_REST_Product_Attributes_V1_Controller{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->flush_rewrite_rules();

Changelog

Since 3.0.0 Introduced.
Deprecated since 3.2.0

WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rules() code WC 11.0.1

protected function flush_rewrite_rules() {
	wp_schedule_single_event( time(), 'woocommerce_flush_rewrite_rules' );
}