Home Blog

Anatoliy Dovgun

  • Git Basics

    Git Basics

    Swap a folder of my-plugin-final-v3-fixed copies for one Git repository where no change ever gets lost.

  • Git Basics Course

    Git Basics Course

    A hands-on Git course for WordPress developers: from your first commit to branches, pull requests, rebase and deploys with GitHub Actions.

  • Git Basics, Chapter 2: Daily workflow (Free Git Course on 4wp.dev)

    Git Basics, Chapter 2: Daily workflow (Free Git Course on 4wp.dev)

    You’re one git add . away from pushing your .env. Chapter 2: Daily workflow. A mistake costs a minute, not a panic. Meaningful commits, every change visible with…

  • Git Basics: a Free Git Course for WordPress Developers on 4wp.dev

    Git Basics: a Free Git Course for WordPress Developers on 4wp.dev

    You know add, commit, push. So what happens at your first merge conflict? FTP, a my-plugin-final-v3-fixed folder and the “last upload wins” rule work until someone overwrites a…

  • Lesson 5.3. Interactivity API

    Goal Add interactivity to store blocks without jQuery and without your own React bundle on the frontend. Key concepts Diagram Code render.php — a "Quick add" button: view.js:…

  • Lesson 6.2. Payment Gateway

    Goal Write a payment gateway that redirects to the provider, handles the webhook and supports block checkout. Key concepts Diagram Code The gateway (shortened): A webhook with a…

  • Lesson 6.3. Shipping and Emails

    Goal Write your own shipping method and your own WooCommerce email. Key concepts Diagram Code A shipping method priced by weight: Common mistakes Symptom Cause Fix The shipping…

  • Lesson 2.3. Extension Plugin

    Monday, 9:40 AM The client deactivated WooCommerce "to test speed". The site is a white screen. So is the admin. Your plugin calls WC() right in the main…

  • Lesson 3.1. Product Types and Variations

    Saturday, 10:30 AM The "Hoodies" category page takes 8 seconds to load. It shows 24 products. Under each card the theme draws color swatches, and to do that…

  • Lesson 3.2. Custom Fields and Product Type

    Tuesday, 3:10 PM A manager saves a product in the admin: the "Supplier code" is there. At night the ERP updates stock for the same product through the…