ads-txt icon indicating copy to clipboard operation
ads-txt copied to clipboard

FR - Filter on ads.txt file location for multisite with redirects

Open JiveDig opened this issue 4 years ago • 1 comments

Is your enhancement related to a problem? Please describe.

We are currently testing ads.txt on a multisite install where we'd like each subsite to have the option of separate ads.txt files. We are using a redirect in Cloudflare from mainsite.com/ads.txt to subsite.com/wp-content/uploads/sites/91/ads.txt but this requires that we manually update the files on the server.

Describe the solution you'd like

I'd love to be able to use a filter like ads_txt_path or similar. This would load/save the content of ads.txt from the path value returned via this filter.

It doesn't solve the step of needing a redirect still, which would be great if we didn't need to do this separately, but at least our site admins can manage ads.txt themselves via the GUI.

JiveDig avatar Mar 22 '21 16:03 JiveDig

Interesting idea @JiveDig and welcome to Ads.txt Manager! I'm marking this as help wanted, documentation, and for a Future Release to note that we'd gladly review a PR to add this in any upcoming release and that we'll want this documented for others to build off of as well. If you're able to work on a PR, then please go for it... thanks!

jeffpaul avatar Mar 24 '21 20:03 jeffpaul