Changeset 1923843
- Timestamp:
- 08/13/2018 05:55:18 AM (8 years ago)
- File:
-
- 1 edited
-
page-siblings/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
page-siblings/trunk/readme.txt
r1923839 r1923843 28 28 29 29 **Disable page siblings metabox completely:** 30 `add_filter('iamntz/page-siblings/add-page-metabox', '__return_false')`31 30 32 For `my-custom-post-type`: 33 `add_filter("iamntz/page-siblings/add-page-metabox/post-type=my-custom-post-type", '__return_false')` 31 add_filter('iamntz/page-siblings/add-page-metabox', '__return_false') 32 33 **For `my-custom-post-type`** 34 35 add_filter("iamntz/page-siblings/add-page-metabox/post-type=my-custom-post-type", '__return_false') 34 36 35 37 **Disable the dropdown that will allow you to filter page parents or page parents & children** 36 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter', '__return_false')`37 38 38 For `my-custom-post-type`: 39 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter/post-type=my-custom-post-type', '__return_false')` 39 add_filter('iamntz/page-siblings/add-hierarchy-column-filter', '__return_false') 40 41 **For `my-custom-post-type`:** 42 43 add_filter('iamntz/page-siblings/add-hierarchy-column-filter/post-type=my-custom-post-type', '__return_false') 40 44 41 45 **Set the default value for the dropdown:** 42 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter', function() { return 'parents_only'; })`43 46 44 For `my-custom-post-type`: 45 `add_filter('iamntz/page-siblings/hierarchy-column-filter-default/post-type=my-custom-post-type', function() { return 'parents_only'; })` 47 add_filter('iamntz/page-siblings/add-hierarchy-column-filter', function() { return 'parents_only'; }) 46 48 47 The allowed values are `all` and `parents_only`. 49 **For `my-custom-post-type`:** 50 51 // The allowed values are `all` and `parents_only`. 52 add_filter('iamntz/page-siblings/hierarchy-column-filter-default/post-type=my-custom-post-type', function() { return 'parents_only'; }) 53 48 54 49 55
Note: See TracChangeset
for help on using the changeset viewer.