Filters and Actions

This section describes all the available filters and actions in the Domain Mapping System plugin. These can be used to modify the behavior of the system and integrate with other plugins.

Filters

1. dms_object_mapper

  • Filters the Mapper class to set or unset necessary parameters in the main WP_Query.

2. dms_available_content_types

  • Filters the available content types.

3. dms_is_unmapped_scenario

  • Determines if the current scenario is unmapped.

4. dms_validate_object_id

  • Fired when creating a new mapping via REST API. Filters whether the object ID needs verification.

5. dms_allowed_object_types

  • Fired during the creation of new mapping via REST API. Filters which object types require verification.

6. dms_mapping_value_name

  • Filters the displayed name of the saved mapping value in a selection box.

  • Filters the original link of the saved mapping value displayed in a selection box.

  • Filters the mapped link of the saved mapping value shown in a selection box.

9. dms_wp_object_value_title

  • Filters the title of the unselected mapping value displayed in a selection box.

  • Filters the link of the unselected mapping value shown in a selection box.

11. dms_wp_object_repository

  • Filters the repository source used to fetch mapping value objects.

12. dms_global_domain_mapping_path_info

  • Filters the value of $_SERVER['path_info'] during global domain mapping.

13. dms_request_params_path

  • Filters the current request path.

14. dms_mapping_value

  • Filters the current mapping value that should be mapped.

15. dms_enable_redirect_for_mapped_pages

  • Determines whether redirection should occur for mapped pages.

16. dms_mapping_scenarios_list

  • Filters the list of possible mapping scenarios.

17. dms_force_redirection_uri

  • Filters the URI used for forced redirection.

18. dms_trp_prevent_redirection

  • Determines if redirection, managed by TranslatePress, should be prevented.

19. dms_wc_account_unmapped_scenario

  • Determines if the current WooCommerce account page should be treated as an unmapped scenario.

20. dms_available_languages

  • Filters the values shown in the language dropdown.

21. dms_allowed_object_groups

  • Filters allowed object groups (such as Posts, Pages, Product Categories, etc.).


Actions

1. dms_rewrite_uris

  • Fires after applying rewrite filters, useful for integration with plugins like Divi.

Last updated