WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rules
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() WC REST Product Attributes V1 Controller::flush rewrite rules code WC 10.5.0
protected function flush_rewrite_rules() {
wp_schedule_single_event( time(), 'woocommerce_flush_rewrite_rules' );
}