Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalController::maybe_flush_rewrite_rules
Queue a rewrite rules flush when the feature is toggled.
Method of the class: OrderWithdrawalController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrderWithdrawalController = new OrderWithdrawalController(); $OrderWithdrawalController->maybe_flush_rewrite_rules( $feature_id ): void;
- $feature_id(string) (required)
- Feature being toggled.
Changelog
| Since 11.1.0 | Introduced. |
OrderWithdrawalController::maybe_flush_rewrite_rules() OrderWithdrawalController::maybe flush rewrite rules code WC 11.1.2
public function maybe_flush_rewrite_rules( string $feature_id ): void {
if ( self::FEATURE_ID === $feature_id ) {
update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' );
}
}