Tutorials for Developers & Sysadmins

Step-by-step guides for the work we actually do — Laravel, PHP, WordPress, MySQL, Linux servers, and the occasional rabbit hole. Every command has been run on a real machine; nothing is theoretical.

How to Display a Product View Counter in WooCommerce Without a Plugin

WooCommerce product view counter without a plugin: post meta increments on each view, priority 25 summary display. Plus AJAX variant…

how7o

How to Display Orders Instead of Dashboard on the WooCommerce My Account Page

WooCommerce replace dashboard with orders on My Account: filter removes the Dashboard menu item, parse_request redirects /my-account/ to /my-account/orders/.

how7o

How to Automatically Add a Product to Cart on Visit in WooCommerce

WooCommerce auto add to cart on page visit via template_redirect + WC()->cart->add_to_cart. Dedup against existing items, meta-flag variant, variable products.

how7o

How to Add a Custom Fee (or Transaction Fee) in WooCommerce

WooCommerce add fee via cart_calculate_fees hook. Six patterns: fixed, percentage, threshold, country, shipping method, payment method. Plus tax handling.

how7o

How to Add a Link or Button After the Login Form in WooCommerce

WooCommerce login form hook: five positions (start, end, before/after) to inject shortcodes or HTML into the My Account login form.…

how7o

How to Show Custom Notifications in the WordPress Dashboard

WordPress admin notice via the admin_notices hook. Info/success/warning/error types, screen + role scoping, safe escaping, and the show-once pattern.

how7o

How to Set Up a System-Based Cron Job in WordPress

WordPress system cron: DISABLE_WP_CRON in wp-config, then crontab hits wp-cron.php on a schedule. Covers cPanel, wget vs PHP CLI, and…

how7o

How to Schedule a Cron Job in WordPress Without a Plugin

WordPress cron job no plugin: cron_schedules filter for the interval, wp_schedule_event to register, an action for the callback. Clearing +…

how7o

How to Get the Default Posts Per Page Value in WordPress

WordPress default posts per page: get_option('posts_per_page') reads the Settings → Reading value. Use in custom WP_Query, plus per-archive overrides.

how7o

Fix ERR_TOO_MANY_REDIRECTS in WordPress After Switching to HTTPS

WordPress too many redirects after switching to HTTPS: trust X-Forwarded-Proto in wp-config. Cloudflare Flexible SSL trap and the Full (strict)…

how7o