function Counter({initialCount}) {
const [count, setCount] = useState(initialCount);
return (
<>
Count: {count}
setCount(initialCount)}>Reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_customer_changed_subscription_to_cancelled', 'customer_skip_pending_cancellation' ); | |
/** | |
* Change 'pending-cancel' status directly to 'cancelled'. | |
* | |
* @param WC_Subscription $subscription | |
*/ | |
function customer_skip_pending_cancellation( $subscription ) { | |
if ( 'pending-cancel' === $subscription->get_status() ) { |
I've been using wsl
(version 2) with genie
mod for years without issue, but one day, Windows 10 finally catch up on wsl
Windows 11 features and gives us a way to use systemD
natively.
I wanted to use the new "right way" to enable systemD
on Windows Subsystem for Linux (without genie
), and I also had a (probably related) infinite Windows RemoteApp error poping in.
- In powershell (as admin)
OlderNewer