WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #18979, comment 2


Ignore:
Timestamp:
04/01/2012 01:10:42 PM (9 years ago)
Author:
michelwppi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18979, comment 2

    v1 v2  
    2121This very simple improvement is in concordance with the available filter 'is_protected_meta' where it is possible to not only subselect key with prefix '_' but with another rules.
    2222
     23note: don't need to add post_type parameter. the filter can use global $post and
     24{{{
     25$post_type = get_post_type ( $post->ID  );
     26}}}
     27
     28
    2329Hope that help to review.