WordPress at Your Fingertips
function is not described

WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rules() protected WC 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.

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

No Hooks.


null. Nothing.


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


Since 3.0.0 Introduced.
Deprecated 3.2.0

Code of WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rules() WC 5.9.0

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