WeForAds for WordPress
Connect your WordPress site to WeForAds in one click. OAuth-powered install, auto-injected ad tag, central ads.txt redirect, Gutenberg ad block, dashboard revenue widget.
Everything a WordPress publisher needs to monetize
No theme edits. No code snippets. No static ads.txt to maintain. Just a plugin that does the right thing.
One-click OAuth connect
Click "Connect with WeForAds", sign in, approve. No API keys to copy. PKCE-secured (RFC 7636).
Auto tag injection
Tag loads async in <head>. Never blocks page render. Zero theme edits.
ads.txt by central redirect
302 redirect to your WeForAds central file — the IAB-recommended Mediavine/Raptive pattern. Update once, deploys everywhere.
Local ads.txt lines
Append publisher-controlled lines on top of the central file for direct deals. Auto-merges, 1-hour cache.
Gutenberg ad block
Drag "WeForAds Ad" into any post or page. Server-rendered — changes propagate without re-saving.
Auto content insertion
Inject after paragraph #N, after first image, before content end. Per-post opt-out via meta box.
Conditional rules
Skip on specific URL patterns, categories/tags, or for logged-in users. Glob wildcards supported.
Dashboard revenue widget
Today's revenue, impressions, eCPM right inside the WordPress dashboard. 10-min cache so it never stalls admin.
Top earning pages
See your 5 highest-RPM URLs over the last 7 days right inside wp-admin. Content strategy at a glance.
Compatibility detection
Auto-wires WP Rocket, LiteSpeed, AMP, Complianz, CookieYes. Surfaces conflicts you'd otherwise miss.
Multisite ready
Activate per-site in a network; each site connects independently. Same publisher account, separate tag tokens.
Security-hardened
Every form nonce-gated, every input sanitized, every output escaped. SHA-256 token hashing. ABSPATH guards everywhere.
From zero to ad revenue, three steps
No FTP. No theme edits. No code snippets to paste. The plugin does the work.
Download & activate
Upload weforads.zip at Plugins → Add New → Upload. Activate. Done.
Connect with WeForAds
Click Connect with WeForAds. Sign in at weforads.com, approve the OAuth consent, you're done. (Or paste an API key.)
Ads go live
Tag injects on your front-end. /ads.txt redirects to the central file. Today's revenue shows in wp-admin.
# 1. Download weforads.zip from your WeForAds dashboard # login.weforads.com → WordPress Plugin (approved publishers) # 2. WP admin → Plugins → Add New → Upload Plugin → Activate # 3. WeForAds → Connect with WeForAds → Authorize on weforads.com
Plugins we auto-detect and wire up
Common questions
Do I need to edit my theme or paste a code snippet?
wp_head automatically once you connect. Zero theme edits. Zero FTP.Will this break my existing ads.txt file?
your-site.com/ads.txt are 302-redirected to your central WeForAds file. If you have a static ads.txt you want to keep, just turn the redirect setting off.Is it really free?
Does it work with WordPress Multisite (Network)?
tag_token). Connection state is per-site.Does it slow down my site?
async, never blocking page render. The plugin adds no server-side work for visitors. In wp-admin, the API is called only when you load the WeForAds settings page or the WP dashboard, with a 5–10 minute cache.How is OAuth more secure than pasting an API key?
How do I disconnect?
/ads.txt redirect is removed, the API key is cleared, and any OAuth token is revoked via the WeForAds revocation endpoint. Deleting the plugin entirely also removes all stored options.Where can I see the source code?
Ready to monetize?
v1.3.0 · WordPress 5.8+ · PHP 7.4+ · GPLv2-or-later · 16 PHP files all php -l clean · available to approved publishers