Filters and actions
Change a link, a displayed value or the markup, and react when a refresh finishes or a product changes.
A test fails if a hook the plugin fires is missing from the developer guide, so the list there is complete.
Filters
- selldigits_product_link: the affiliate link shown for a product, everywhere.
- selldigits_product_data: the stored product row just before a box is drawn (change what is displayed without saving anything).
- selldigits_deal_badge: the name of Amazon's deal shown as a badge. selldigits_block_html: a block's finished HTML.
- selldigits_public_product: the array selldigits_get_product() returns.
- selldigits_structured_data_enabled and selldigits_structured_data: stop or change the schema.org markup on a post.
- selldigits_template_dirs: folders searched for block templates.
- selldigits_tracking_allowed: veto tracking for a request (a click, a view or an audience count).
- selldigits_api_limits: the SellDigits API's limits (calls a minute, a day, and to Amazon a day), to lower them or raise them for your own scripts.
- selldigits_sync_max_connections, selldigits_sync_max_items_per_scan, selldigits_pricing_url and selldigits_plans.
Actions
- selldigits_refresh_started and selldigits_refresh_finished: a refresh run began or ended (with what it updated).
- selldigits_product_event: something happened to a product (price drop, back in stock, product created, issue flagged).
- selldigits_connection_revoked, selldigits_digest_report_sent and selldigits_purge_post_cache (a page cache should forget a page whose product changed).