Posts

Full List of WooCommerce Cookies

What are cookies? Cookies are small pieces of data, stored in text files, that are stored on your computer or other device when websites are loaded in a browser. This allows the server to deliver a page tailored to a particular user, or the page itself can contain some script which is aware of the data in the cookie and so is able to carry information from one visit to the website (or related site) to the next. Cookies may be set by the site that you are visiting, known as 'first-party cookies' or by third parties, such as those who serve content or provide advertising or analytics services on the website, known as ‘third-party cookies’. See full list of WordPress cookies . Full List of WooCommerce Cookies Here is full list of cookies set by WooCommerce — on the store front end and the store’s backend (/wp-admin). Front end WooCommerce Cookies woocommerce_cart_hash woocommerce_items_in_cart wp_woocommerce_session_ woocommerce_recently_viewed store_notice[notice

WooCommerce Thank you Page Visual Hooks Guide

WooCommerce Thank you Page Hooks The WooCommerce Thank you page has 3 hooks: woocommerce_before_thankyou woocommerce_thankyou_ woocommerce_thankyou WooCommerce Thank you Page Visual Hooks Guide Order received woocommerce_before_thankyou Thank you. Your order has been received. Order number: Date: Email: Total: Payment method: 73 February 28, 2020 jack.sparrow@mail.com €100.00 Direct bank transfer woocommerce_thankyou_ Order details Product Total T-shirt × 1 € 100.00 Subtotal: € 100.00 Payment method: Direct bank transfer Total: € 100.00 Billing address Jack Sparrow Strasse 24 14199 BERLIN Germany 738428372 jack.sparrow@mail.com woocommerce_thankyou Learn more: PHP Snippet: Add custom content to the WooCommerce Thank you page PHP Snippet: Add custom content to the WooCommerce Thank you page after Order Received Title Change the Thank

List of WordPress Comments Form Hooks

The build-in WordPress comment system has its hooks which you can use to further customize the comment form by adding custom content above the form, below the form, above the Post comment button and so on. So here it is: List of WordPress Comments Form Hooks There are seven WordPress comments hooks. Some of them are not available depending the discussion settings ( learn more ). comment_form_before comment_form_top comment_form_before_fields comment_form_after_fields comment_form comment_form_must_log_in_after comment_form_after Read further: WordPress Comments Form – Visual Hook Guide How to add custom content to the WordPress comments form

List of WooCommerce Checkout Page Hooks

List of WooCommerce Checkout Page Hooks woocommerce_before_checkout_form – before the checkout form. It is placed above the coupon field on the checkout page. woocommerce_checkout_before_customer_details – placed in the checkout form just before the customer details. woocommerce_before_checkout_billing_form – before the start of the billing form. woocommerce_after_checkout_billing_form – after the completion of the billing form. woocommerce_before_checkout_shipping_form – just before the start of the shipping form. woocommerce_after_checkout_shipping_form – after the completion of the shipping form. woocommerce_before_order_notes – before the order notes field on the checkout page. woocommerce_after_order_notes – after the order notes field on the checkout page. woocommerce_checkout_after_customer_details – placed after the completion of the customer details i.e after the billing & shipping fields. woocommerce_checkout_before_order_review – before th

Add code to WordPress header or footer

Adding code to WordPress header or footer is fairly simple using your functions.php file. This lets you keep all your snippets in one place and avoid modifying core theme files.Often you are asked to add header and footer code in WordPress when trying to integrate with web services like Google Analytics, Facebook Pixel, Google Search Console, etc. PHP Snippet: Add code to the WordPress Header You need to use the wp_head hook to add content to the <head></head> dynamically. Just add the following piece of code to your child theme’s functions.php: add_action('wp_head', 'change_this_name_of_your_function'); function change_this_name_of_your_function(){ echo ' '; } Add code to the WordPress Footer Go to the original article to learn how to add code to the WordPrses footer .

How to add coupon code via url in WooCommerce

Creating unique WooCommerce URLs that automatically applies a discount to the customer’s shopping cart is a great way to through UX to increase the revenue. Lets see how to apply a coupon via url in WooCommerce without a plugin. First, you will need to set up a coupon in WooCommerce. Then in your child theme’s functions.php add the following code: PHP Snippet: Apply coupon to WooCommerce cart via url function webroom_woocommerce_coupon_links(){     // Bail if WooCommerce or sessions aren't available.     if (!function_exists('WC') || !WC()->session) {         return;     }     /**      * Filter the coupon code query variable name.      *      * @since 1.0.0      *      * @param string $query_var Query variable name.      */     $query_var = apply_filters('woocommerce_coupon_links_query_var', 'coupon_code');     // Bail if a coupon code isn't in the query string.     if (empty($_GET[$query_var])) {         return;     }

How to disable Portfolio and FAQ from Avada theme

If you are running Avada WordPress theme and want to get rid of Portfolio and FAQs custom post type and theirs custom taxonomies — FAQ Categories, Portfolio Categories, Skills, Tags use the following code: function webroom_deregister_post_type(){ unregister_post_type( 'avada_portfolio' ); unregister_post_type( 'avada_faq' ); unregister_taxonomy( 'portfolio_category'); unregister_taxonomy( 'portfolio_tags'); unregister_taxonomy( 'portfolio_skills'); unregister_taxonomy( 'faq_category'); } add_action('init','webroom_deregister_post_type'); And that’s it — In your WordPress admin dashboard you’ll see the custom post type / taxonomy isn’t there anymore. Many WordPress themes come with their own custom post types. Those may be FAQs, Portfolio, Books or any other. Installing the theme forces you to deal with those extra custom post types and taxonomies. Some themes allow you to disable them, some not. If you want  to