Hi Ayecode Team,
I'd like to request an enhancement to the WP GetPaid Advertising add-on that would allow Ad Zones to support AJAX-based random ad rotation.
Current Limitation
At the moment, Ad Zones only refresh when the full page is reloaded. This makes it difficult to:
Rotate ads dynamically during a user's session,
Refresh ad content without triggering a full page load,
Improve ad visibility for longer sessions or interactive pages.
Feature Request
It would be valuable to have:
A built-in AJAX endpoint (or hookable function) to fetch and render a randomly selected ad from a given zone,
The ability to call this endpoint from frontend JavaScript at regular intervals to refresh the displayed ad.
This would allow ad zones to rotate ads client-side without reloading the entire page and offer a more modern and engaging experience.
Developer Hooks
If there are no current plans to implement this directly, could you please let me know:
What hooks or functions are available for retrieving and rendering a single, randomized ad from a zone?
Whether the ad zone rendering system supports output buffering or return-based rendering for use in AJAX?
I raised this through a support ticket back in Dec 2024 , I strongly believe this would make the Get Paid Ad system significantly more dynamic and developer-friendly.
Thanks for your time and consideration.
Thank You