WooCommerce Warenkorb überspringen
function skip_to_checkout_on_add_to_cart($url) { return wc_get_checkout_url(); } add_filter(‘woocommerce_add_to_cart_redirect’, ‘skip_to_checkout_on_add_to_cart’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function skip_to_checkout_on_add_to_cart($url) { return wc_get_checkout_url(); } add_filter(‘woocommerce_add_to_cart_redirect’, ‘skip_to_checkout_on_add_to_cart’);Continue reading
add_filter( ‘woocommerce_cart_updated_notice_type’, ‘__return_false’ );Continue reading
add_filter( ‘wc_add_to_cart_message_html’, ‘__return_false’ );Continue reading
add_filter( ‘wp_revisions_to_keep’, function( $limit ) { // Limit to the last 5 revisions. Change 5 to whatever limit you want. return 5; } );Continue reading
add_action( ‘wp_footer’, function() { ?>Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://qcs-ghana.stromstadafroshop.se/wp-content/uploads/2024/04/logo-email-header.webp’; $logo_width = 100; $logo_height = 100; printf( ‘.login h1 a {background-image:url(%1$s) !important; margin:0…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading