Learn

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

How to Deregister or Remove a CSS File in WordPress (wp_dequeue_style Not Working)

WordPress wp_dequeue_style not working? Bump hook priority to 9999 so your dequeue runs after plugin enqueues. Finding handles, replacing with…

how7o

How to Get Posts by Date Range in WordPress

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…

how7o