Developers
English
WordPress Plugin
Disable Claim for Listeo: Developer Guide
Technical guide for claim visibility filters, listing type/category settings, template interception, and safe customizations.
Developer scope. This guide covers safe template and rule customizations for Disable Claim for Listeo. Do not alter license activation, update checks, or product entitlement logic.
How the plugin works
The plugin evaluates the current listing against saved listing-type and category rules. If claim is disabled, it can filter the claim display, remove the claim template, hide claim UI with CSS, or intercept clicks with a custom message.
Options
| Option | Purpose |
|---|---|
listeo_disable_claim_types | Selected listing types where claim is disabled. |
listeo_disable_claim_categories | Selected taxonomy/category pairs where claim is disabled. |
listeo_disable_claim_hide_button | Controls whether the claim UI is hidden or shown as disabled. |
listeo_disable_claim_custom_message | Message shown when disabled-message mode is used. |
Hooks and filters
| Hook/filter | Purpose |
|---|---|
listeo_show_listing_claim | Filters whether claim should be shown for a listing. |
listeo_before_claim_section | Runs before the claim section is rendered. |
listeo_core_get_template | Can prevent the claim template from loading. |
listeo_disable_claim_listing_types | Adjust listing types shown in settings. |
listeo_disable_claim_category_taxonomies | Adjust category taxonomies considered by settings. |
Safe customizations
- Add custom CSS for the disabled claim state.
- Use filters to expose custom listing types or taxonomies in the settings UI.
- Build reporting for restricted claim categories.
- Keep existing claim removal logic in place when adding extra conditions.
- Keep license AJAX actions such as
ldc_activate_licenseandldc_deactivate_licenseuntouched.
Regression tests
- Restricted listing type hides or disables claim correctly.
- Restricted category hides or disables claim correctly.
- Unrestricted listings continue to use normal Listeo claim behavior.
- Custom taxonomies work if added through filters.
- Cache/minification does not re-enable claim UI unexpectedly.