Init Ad Engine – Flexible, Multi-Format, Secure
by Hao Nguyen on WordPress.org
A lightweight and flexible ad engine for WordPress. Place banners, popups, sticky ads, and popunders across desktop and mobile with full control.

Affiliate Gate settings page.
Init Ad Engine lets you insert various ad formats into your WordPress site with zero coding required.
Built for flexibility and performance:
– Tabbed admin UI with clear separation by device type
– All styles are inline or embedded – no external CSS files
– Multiple ad formats supported: popups, sticky bars, floating ads, popunder, before/after content
– Optional fallback HTML/JS code when no image is provided
Available ad positions:
-
Desktop (PC):
Billboard, Balloon Left/Right, Float Left/Right, Catfish Top/Bottom, Popup Center, Before/After Content -
Mobile:
Mini Billboard, Sticky Top/Bottom, Popup Center, Before/After Content -
Special:
Popunder (opens new tab on first click), Global header/footer code injection
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
Features
- 20+ configurable ad positions
- Popunder with cooldown and click threshold
- Exit-intent or delay-based popup behavior
- Global
andinjection fields - Fallback HTML/JS ad code per position
- Minimalist inline CSS for fast load
- Responsive support for all device types
- Clean admin UI with media uploader
- Affiliate Gate with flexible display logic (always-on, expire-after-click, random %, every X pages)
Filters for Developers
-
init_plugin_suite_ad_engine_use_kses
Control whether ad snippets are escaped viawp_kses. Default:true. -
init_plugin_suite_ad_engine_allowed_tags
Extend or modify the allow-list of permitted tags/attributes for ad snippets. -
init_plugin_suite_ad_engine_disable_all_ads
Disable all ad injections globally. Default:false. -
init_ad_engine_should_enqueue_affiliate_gate
Control whether the Affiliate Gate scripts should be enqueued.
Security Notes
- Ad snippets entered in the plugin settings are considered user-provided content.
- By default, all snippets are escaped at render time using
wp_kseswith a restricted allow-list of tags and attributes. - Developers can disable escaping via the
init_plugin_suite_ad_engine_use_ksesfilter if they explicitly trust their input. - All ad injections can be globally disabled via the
init_plugin_suite_ad_engine_disable_all_adsfilter. - Only administrators with the
manage_optionscapability can configure or modify global ad settings.
License
This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.