| 开发者 | bigrat95 |
|---|---|
| 更新时间 | 2026年11月27日 00:00 |
| 捐献地址: | 去捐款 |
| 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:price / g:sale_price, including Price Based on Country), stock status, product IDs, words in the title, required fields; exclusion rules and availability rules on custom fields; live count of the matching products. Filter: oliprfe_min_price.g: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.wcpbc-manual-country=US) added to each item g:link and to mobile_link when set, never to image_link. Parameter keys are lowercased (sanitize_key). Existing parameters (variation attribute_*, lang) are kept. Filter: oliprfe_link_args.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)manage_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|settingsYes, if you keep a copy of Google's taxonomy file on your server (download taxonomy-with-ids.en-US.txt or the file of your language, for example fr-FR, from the Google Merchant Center help). Point the plugin to it in a small mu-plugin:
add_filter( 'oliprfe_google_taxonomy_file', function () { return WP_CONTENT_DIR . '/taxonomy-with-ids.en-US.txt'; } );
The plugin does not include the file because Google does not publish it with a license that allows redistribution. Without it, the category fields take the numeric ID.
Your 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.
.distignore and .gitattributes export-ignore omit tests, tooling, composer/phpunit/phpcs/npm manifests and internal Markdown from the distributable ZIP. readme.txt stays.opf- identifiers renamed to oliprfe-.oli_pf_* (0.3.4 and earlier) are copied to oliprfe_*, then the old keys are deleted.add_query_arg, so &, # and spaces stay one valid query value.sanitize_key).wcpbc-manual-country=US). Added to each item g:link and to mobile_link when it is set, not to image_link. Existing query parameters are kept. Empty: off. Filter: oliprfe_link_args.oliprfe_min_price./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.