show_taxonomy_filter - allows hiding taxonomy filtering fields. Useful when you have several post types in block and someone doesn't have taxonomies. E.g Pages
show_override_option - allow to hide Override fields for manual query. Instead of hide some fields or provide full list of it, completely hide whole section
Default value for the fields is true - both sections are enabled by default
Add basic test coverage for the feature
The idea came from different projects where we have to hide those fields, so client won't have ability to change it or caught into error or misunderstanding
QA
Screenshots/video:
Tests
Does this have tests?
[x] Yes
[ ] No, this doesn't need tests because...
[ ] No, I need help figuring out how to write the tests.
What does this do/fix?
Add 2 parameters to Post_Loop_Field_Config:
show_taxonomy_filter
- allows hiding taxonomy filtering fields. Useful when you have several post types in block and someone doesn't have taxonomies. E.g Pagesshow_override_option
- allow to hide Override fields for manual query. Instead of hide some fields or provide full list of it, completely hide whole section Default value for the fields is true - both sections are enabled by default Add basic test coverage for the featureThe idea came from different projects where we have to hide those fields, so client won't have ability to change it or caught into error or misunderstanding
QA
Screenshots/video:
Tests
Does this have tests?