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
dms_object_mapperFilters the Mapper class to set or unset necessary parameters in the main
WP_Query.
2. dms_available_content_types
dms_available_content_typesFilters the available content types.
3. dms_is_unmapped_scenario
dms_is_unmapped_scenarioDetermines if the current scenario is unmapped.
4. dms_validate_object_id
dms_validate_object_idFired when creating a new mapping via REST API. Filters whether the object ID needs verification.
5. dms_allowed_object_types
dms_allowed_object_typesFired during the creation of new mapping via REST API. Filters which object types require verification.
6. dms_mapping_value_name
dms_mapping_value_nameFilters the displayed name of the saved mapping value in a selection box.
7. dms_mapping_value_link
dms_mapping_value_linkFilters the original link of the saved mapping value displayed in a selection box.
8. dms_mapping_value_mapped_link
dms_mapping_value_mapped_linkFilters the mapped link of the saved mapping value shown in a selection box.
9. dms_wp_object_value_title
dms_wp_object_value_titleFilters the title of the unselected mapping value displayed in a selection box.
10. dms_wp_object_value_link
dms_wp_object_value_linkFilters the link of the unselected mapping value shown in a selection box.
11. dms_wp_object_repository
dms_wp_object_repositoryFilters the repository source used to fetch mapping value objects.
12. dms_global_domain_mapping_path_info
dms_global_domain_mapping_path_infoFilters the value of
$_SERVER['path_info']during global domain mapping.
13. dms_request_params_path
dms_request_params_pathFilters the current request path.
14. dms_mapping_value
dms_mapping_valueFilters the current mapping value that should be mapped.
15. dms_enable_redirect_for_mapped_pages
dms_enable_redirect_for_mapped_pagesDetermines whether redirection should occur for mapped pages.
16. dms_mapping_scenarios_list
dms_mapping_scenarios_listFilters the list of possible mapping scenarios.
17. dms_force_redirection_uri
dms_force_redirection_uriFilters the URI used for forced redirection.
18. dms_trp_prevent_redirection
dms_trp_prevent_redirectionDetermines if redirection, managed by TranslatePress, should be prevented.
19. dms_wc_account_unmapped_scenario
dms_wc_account_unmapped_scenarioDetermines if the current WooCommerce account page should be treated as an unmapped scenario.
20. dms_available_languages
dms_available_languagesFilters the values shown in the language dropdown.
21. dms_allowed_object_groups
dms_allowed_object_groupsFilters allowed object groups (such as Posts, Pages, Product Categories, etc.).
Actions
1. dms_rewrite_uris
dms_rewrite_urisFires after applying rewrite filters, useful for integration with plugins like Divi.
Last updated