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.
WooCommerce product view counter without a plugin: post meta increments on each view, priority 25 summary display. Plus AJAX variant…
WooCommerce replace dashboard with orders on My Account: filter removes the Dashboard menu item, parse_request redirects /my-account/ to /my-account/orders/.
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.
WooCommerce add fee via cart_calculate_fees hook. Six patterns: fixed, percentage, threshold, country, shipping method, payment method. Plus tax handling.
WooCommerce login form hook: five positions (start, end, before/after) to inject shortcodes or HTML into the My Account login form.…
WordPress admin notice via the admin_notices hook. Info/success/warning/error types, screen + role scoping, safe escaping, and the show-once pattern.
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…
WordPress cron job no plugin: cron_schedules filter for the interval, wp_schedule_event to register, an action for the callback. Clearing +…
WordPress default posts per page: get_option('posts_per_page') reads the Settings → Reading value. Use in custom WP_Query, plus per-archive overrides.
WordPress too many redirects after switching to HTTPS: trust X-Forwarded-Proto in wp-config. Cloudflare Flexible SSL trap and the Full (strict)…
Sign in to your account