WooCommerce Catalog Mode snippets
function wdm_add_to_cart_checkout_redirect() {
wp_safe_redirect( get_permalink( get_option( 'woocommerce_checkout_page_id' ) ) );
die();
}
add_action( 'woocommerce_add_to_cart', 'wdm_add_to_cart_checkout_redirect', 11 );
Also in PHP:
- associative array rev in php
- date to format php
- base64 decode encode php
- all capital in php
- exceptions php
- datetime mysql php
- check if lenghth of string is 11 in php
- email in ctf
- add user role to wp admin page css
- age php datetime
- encontrar un caracter en un strin php
- DOMDocument is not installed on your server
- check if array has a key php
- encode in laravel api
- data validation of $_POST in php
- artisan seed
- Codeigniter check around count
- comment in php
- check if includes numbers php
- check if a string contains a substring php
- Class 'App\Http\Controllers\Auth' not found
- explode php
- envoyer mail php depuis localhost
- cache:clear artisan laravel