| 开发者 | bartcc |
|---|---|
| 更新时间 | 2026年10月2日 09:11 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
klassifieds_hotlink_images filter overrides the setting.
Ticking it applies to images fetched from then on: the ones already stored stay
in your media library until their product is removed, which the "Cleanup
regularly" setting on the Tools tab (on by default) does once its ad has been
inactive for more than 30 days. Unticking it again stores the linked images in
the background, one product at a time; until a product's turn comes, its images
still load from kleinanzeigen.de.
How the work is scheduled
Imports and syncs run in the background through WordPress's own scheduler
(WP-Cron), which advances when your site receives traffic. On a shop that is
still quiet, that can be slow and irregular. There are two ways to make it
steady, neither of them required:
wp-cron.php — the usual approach for any WordPress
site that cares about timing.wp-cron.php on your site about once a minute, which
lets WordPress run its scheduled work on time. Those requests carry no data.
The service keeps one entry per site: the site address, the plugin version, the
edition and the time of the last registration. It does not keep the IP address.
The entry is deleted as soon as you switch the service off or deactivate the
plugin, and automatically once a site has not registered for four days. The
server's access log, which records every request with its IP address, is
deleted after seven days. The plugin author sees the list of registered sites
in order to run the service; it is used for nothing else and passed on to no
one. The service runs on the author's own server in Germany. To have your entry
removed, or to ask what is stored about your site, write to info@webpremiere.de.
The plugin works without it — imports and syncs simply advance whenever
WordPress's own scheduler runs.
Terms: https://klassifieds.webpremiere.de/en/agb/
Privacy policy: https://klassifieds.webpremiere.de/en/datenschutz/
Source code and building
Two parts of the plugin are compiled, and their sources ship with it:
build/, the onboarding screen, is built from src/ with
@wordpress/scripts.admin/css/style-admin-klassifieds.css is built with Tailwind CSS from
admin/css/style-admin-klassifieds-input.css, which imports
admin/css/style-admin-common-input.css.npm installnpm run build rebuilds build/ from src/npm run tw:build rebuilds admin/css/style-admin-klassifieds.cssvendor/ are installed with Composer, from composer.json
and composer.lock: composer install --no-dev --optimize-autoloader.
Klassifieds Pro
A paid add-on runs the synchronization unattended, so products follow their ads
without anyone starting a run, and adds a distributed sync worker, screenshots,
e-mail reports and discount pricing. It is not required and it unlocks nothing
here — everything described above works on its own.
See https://klassifieds.webpremiere.de
/wp-content/plugins/, or install it through the
Plugins screen in WordPress.Open your kleinanzeigen.de profile page. The account ID is the number in that page's address. It is public — it is not a login and not a password. To avoid typos, you can also enter the URL of any of your ad pages on https://kleinanzeigen.de instead of the account ID. The plugin does the rest.
No. The plugin reads public pages only and stores no credentials for kleinanzeigen.de.
Background work runs through WordPress's scheduler, which only advances when
your site receives traffic. On a new shop with few visitors that can be slow and
irregular. Set up a system cron for wp-cron.php, or switch on the optional
trigger service under Klassifieds → Settings.
Yes, by default, as WebP: a typical photo takes about 30 KB, plus the sizes WordPress makes of it. To keep them off your disk, tick "Show images from kleinanzeigen.de instead of copying them" on the General settings tab; your visitors' browsers then load them from kleinanzeigen.de (see "Images are stored in your media library" above).
Its product is deactivated and falls back to a plain WooCommerce product. It is not deleted, and its previous state is kept, so the product is restored if the ad reappears. If the ad stays gone for more than 30 days, the "Cleanup regularly" setting on the Tools tab (on by default) deletes the product for good.
Yes, but a later sync will bring the fields that come from the ad back in line with the ad. Fields the plugin does not own — your own categories, labels and the mapping you configured — are left alone.
Its own database tables, options and scheduled events, and its folder under
wp-content/uploads/. Products created from ads stay in your shop as ordinary
WooCommerce products, and so do their ad data, the labels and the "specials"
and "rent" attributes. To remove those too, add this line to wp-config.php
before you delete the plugin:
define( 'KLASSIFIEDS_REMOVE_ALL_DATA', true );
The products themselves are never deleted.
KlassifiedsAjax, registered as window.KlassifiedsAjaxClass, so Klassifieds Pro can extend it. The inline edit, poll and ping functions moved to Pro, which is the only plugin that answers them. The script no longer refers to Pro's websocket or list classes.src/admin/, compiled by npm run build into build/admin/. The page loads the same scripts under the same names and they do what they did.notice() and revert() to jQuery now loads after the script that hands it its settings. On the product and term screens it ran before.npm run test:js runs the tests of the admin scripts (Vitest). The AJAX request functions read the nonce when they are called, not when the script starts.KlassifiedsCookie. It reads the last cookie on the page, which the old reader missed, and a missing orientation cookie no longer stops the dashboard's scripts.KlassifiedsAjax.bulkedit() and the _ajax_klassifieds_bulkedit action. Klassifieds Pro guards the list in the browser.Klassifieds\Utils\Utils::parse_remote_url() moved to klassifieds()->fn()->parse_remote_url(). Klassifieds Pro 0.9.171 calls it there.spin, the name WooCommerce's admin styles give a rotation, and whichever stylesheet loaded last won; it is klassifieds-rainbow-spin now.klassifieds_placeholder_image filter. The ad icon and the installer mark follow the new artwork.Klassifieds_Product::placeholder_image() is gone; use klassifieds()->fn()->get_placeholder_image_src(). The location icons' classes are klassifieds and custom, set by Klassifieds Pro 0.9.170.#svg-installer-value and #svg-bulk-value (Klassifieds Pro 0.9.169 writes the bulk edit's there). tests/svg-styles.php pins both ids.Klassifieds_Ajax::json_success() or json_error(), so every reply carries success, and a failure a message instead of data.error. Klassifieds_Dom_Document (mobile(), desktop()) replaces read_dom_document(), get_ad_locality() and get_ad_images(); get_ad_content() stays, deprecated, for Klassifieds Pro 0.9.167. create_product_images() takes the page as array( 'device' => …, 'html' => … ). Update Klassifieds Pro to 0.9.168 afterwards.