Plugin Directory

Changeset 1923843


Ignore:
Timestamp:
08/13/2018 05:55:18 AM (8 years ago)
Author:
iamntz
Message:

readme.txt tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • page-siblings/trunk/readme.txt

    r1923839 r1923843  
    2828
    2929**Disable page siblings metabox completely:**
    30 `add_filter('iamntz/page-siblings/add-page-metabox', '__return_false')`
    3130
    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')
    3436
    3537**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')`
    3738
    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')
    4044
    4145**Set the default value for the dropdown:**
    42 `add_filter('iamntz/page-siblings/add-hierarchy-column-filter', function() { return 'parents_only'; })`
    4346
    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'; })
    4648
    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
    4854
    4955
Note: See TracChangeset for help on using the changeset viewer.