Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/allow custom taxonomies #7

Merged
merged 2 commits into from
Jun 6, 2023
Merged

Feat/allow custom taxonomies #7

merged 2 commits into from
Jun 6, 2023

Conversation

humet
Copy link
Collaborator

@humet humet commented Jun 6, 2023

This pull request introduces several enhancements to the plugin, improving its flexibility and usability.

Changes Include:

  1. The rewritePaths function in the Helpers class now supports all taxonomies associated with a post, not just categories. This makes the plugin more flexible and compatible with a wider range of Wordpress setups.

  2. We've added an additional placeholder %author_username% for usage in revalidation paths, allowing inclusion of the post author's username.

  3. Improved support for paths with multiple placeholders of the same or different types. This ensures that all placeholders in a path are correctly replaced, not just the first occurrence of each type.

  4. The user interface in the Settings has been updated to guide users about using taxonomy names, including 'category', 'post_tag', or any custom taxonomy.

These enhancements greatly increase the plugin's flexibility and its ability to handle a variety of Wordpress configurations and setups. Importantly, the changes are backward compatible, ensuring that the plugin continues to work as expected for users who do not wish to utilize these new features.

Testing

The changes have been tested and verified in a Wordpress environment. For ensuring maximum compatibility, it is recommended to perform further testing in various setups.

@bebjakub bebjakub merged commit 5199908 into Dexerto:main Jun 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants