Changeset 1923839
- Timestamp:
- 08/13/2018 05:48:30 AM (8 years ago)
- File:
-
- 1 edited
-
page-siblings/trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
page-siblings/trunk/readme.txt
r1923834 r1923839 27 27 You can choose to disable some (or all!) functionality by using filters. These filters are as following: 28 28 29 1. Disable page siblings metabox completely: 29 **Disable page siblings metabox completely:** 30 30 `add_filter('iamntz/page-siblings/add-page-metabox', '__return_false')` 31 31 … … 33 33 `add_filter("iamntz/page-siblings/add-page-metabox/post-type=my-custom-post-type", '__return_false')` 34 34 35 3. Disable the dropdown that will allow you to filter page parents or page parents & children 35 **Disable the dropdown that will allow you to filter page parents or page parents & children** 36 36 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter', '__return_false')` 37 37 … … 39 39 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter/post-type=my-custom-post-type', '__return_false')` 40 40 41 5. Set the default value for the dropdown: 41 **Set the default value for the dropdown:** 42 42 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter', function() { return 'parents_only'; })` 43 43
Note: See TracChangeset
for help on using the changeset viewer.