WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rules()protectedWC 3.0.0

Deprecated from version 3.2.0. It is no longer supported and can 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.

Return

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 8.6.1

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