| 开发者 |
winup
winupsites |
|---|---|
| 更新时间 | 2026年9月17日 23:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[winup_ad id="1"] for manual placementads.txt written physically at the domain root (via WP_Filesystem), with a virtual PHP-served fallback when physical writing isn't possiblewinup-ad-engine folder to the /wp-content/plugins/ directory16 independent blocks, each with its own settings for position, device, scheduling and more.
Yes. Use [winup_ad id="X"] (where X is the block number from 1 to 16) in posts, pages or any area that supports shortcodes.
Yes. Use the export button to download a JSON file with the block configuration, then import it on the destination site. Import offers two modes: merge (only replaces blocks that have content in the file) and replace all.
Whenever your server allows direct file writes, Ad Engine writes ads.txt physically at your domain root (using WP_Filesystem), where ad networks expect to find it at https://yourdomain.com/ads.txt. If direct writes aren't possible (subdirectory installs, path-based multisite networks, read-only filesystems), it serves the same content virtually through PHP, so ads.txt keeps working either way. Deactivating or uninstalling the plugin does not delete the physical ads.txt file — removing it automatically would immediately break every ad network relying on it, so the file is left in place; delete it manually if you no longer want it. Uninstalling removes only the change history table.
ads.txt passa a ser gravado fisicamente na raiz do domínio (via WP_Filesystem), com modo virtual (PHP) como fallback automático quando a escrita física não é possível (instalação em subdiretório, multisite por subdiretório, permissão de arquivo).ads.txt físico preexistente é importado para o editor, com backup do arquivo original. Se o conteúdo divergir do que já estava salvo, o plugin pergunta qual versão manter, sem sobrescrever nenhuma.ads.txt feita fora do plugin (FTP, deploy), com a mesma opção de escolher qual versão manter.ads.txt e a origem da mudança (painel, importação, WP-CLI ou sistema).wp winup ads-txt status|sync|import.ads.txt feitas no painel não apareciam em /ads.txt quando havia um arquivo físico no servidor.ads.txt físico.ads.txt usava wp_kses_post(), que escapava indevidamente & e < numa resposta text/plain; o cache foi reduzido para 5 minutos, com revalidação por ETag.slot da tag <winupads> (e os atributos relacionados sizes, refresh, priority e collapse) não é mais descartado ao salvar o bloco — permite segmentar um slot específico do GAM.<winupads> não é mais descartado ao salvar o bloco.the_content fora do loop principal.