| 开发者 | bigrat95 |
|---|---|
| 更新时间 | 2026年10月17日 00:54 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
oliprfe_channels filteritem_group_id/fr/); with Price Based on Country, prices come from a pricing zone and links can carry the country parameterpa_color (or pa_colour, Color, Colour) and pa_size (or Size) attributes, in the feed language; an explicit mapping always wins{brand} {name} {type} - {variation}, with the type set per categoryg:availability = backorder (or preorder if configured), g:availability_date in ISO 8601 with the site time zone, and optional handling time. In-stock items are unchanged. A per-product override (days or a fixed date) can be set on the product and on each variation.X-Robots-Tag: noindex, ETag and Last-Modified, for hosts whose CDN keeps static files too long. The pre-generated file is streamed while the plugins load (never rebuilt during the request); an optional must-use loader serves it even earliermanage_woocommerce capability (administrators and shop managers); when shop manager access is turned off in the settings, manage_options (administrators)wp oli-feed list|generate|status|export|import|settingsYour host or CDN probably caches static files for a long time. In Settings, choose Through WordPress: the feed is then served with a short cache (one hour by default) and validators, and the URL becomes /?oliprfe_feed=<file>.
wp oli-feed generate <id> or wp oli-feed generate --all.
The feed is sent while the plugins load, before WooCommerce, from the pre-generated file.
Users with the manage_woocommerce capability: administrators and shop managers. Uncheck "Shop managers" in WooCommerce > Product Feeds > Settings to require manage_options (administrators only).
In wp-content/uploads/oli-product-feed/ by default. The folder can be changed in Settings or with the oliprfe_output_dir filter (return the same folder on every request). When it changes, the feed files move to the new folder and the previous folder is cleaned: only the files the plugin wrote are deleted, and the folder itself only when the plugin created it and nothing else is in it. A folder that cannot be used (a symbolic link or inside one, real path outside the uploads directory, not writable, cannot be created) is refused: the feeds stay where they are, nothing is moved or deleted, and the plugin screens show a notice. A file of the same name that the plugin did not write is never overwritten or deleted: the feed stays in its previous folder until that file is removed.
The scheduled tasks and their Action Scheduler history are always removed. When Delete all data when the plugin is deleted is checked, the feeds, the settings, the generated files of every output folder the plugin used and its WooCommerce logs (source oli-product-feed) are deleted too. Files and folders the plugin did not write or create are never touched, and no symbolic link is followed. When it is unchecked (default), the feeds, settings, files and logs are kept.
/fr/fr/…, a 404) or http:// on item links and the channel <link>. URLs that already have /fr/ are left as-is; default-language URLs are converted once; force_https is applied after conversion.wp_add_inline_script() (no inline <script> tag).OliProductFeed to Oliprfe so the plugin prefix is a single segment of four or more characters (the previous namespace was detected as the too-short prefix oli).wp_kses at the echo site (no unsanitized variables echoed).WP_PLUGIN_DIR when the plugin is active (no remote file access, no variable require).oliprfe_ / OLIPRFE_ prefix (options, meta keys, transients, post type and actions included) so Plugin Check recognizes the plugin prefix. The oli-product-feed text domain is unchanged.load_plugin_textdomain() call was removed); language files are served from the WordPress.org translation platform and are no longer bundled.oliprfe_output_dir filter), the feed files move to the new folder and the previous folders of the plugin are cleaned. The folders and files the plugin wrote are recorded; nothing else is ever deleted.wp_update_post, WP-CLI) has its file removed at once, so the static URL no longer serves it.?oliprfe_feed= answers 404 instead of the home page.