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)…
WordPress wp_dequeue_style not working? Bump hook priority to 9999 so your dequeue runs after plugin enqueues. Finding handles, replacing with…
WordPress posts by date range via date_query in WP_Query or pre_get_posts. Covers after/before, inclusive, calendar parts, OR relation, and the…
Sign in to your account