WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #17447, comment 2


Ignore:
Timestamp:
05/17/11 04:35:48 (3 years ago)
Author:
mikeschinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17447, comment 2

    v2 v3  
    1010In addition a plugin developer may want to provide an admin console option that allows the end user to define all the visibility settings for the different post types; a `pre_register_post_type` hook would enable that. 
    1111 
    12 Another example is`$args->columns` which would include a keyed array of headers and callbacks and/or  `$args->column_headers` containing an array of headers and `$args->column_callbacks` containing an array of callbacks. And yet another example would be to add `$args->meta_boxes` which would include a keyed array of `meta_box` args. 
     12Another example is an `$args->columns` which would include a keyed array of headers and callbacks and/or  `$args->column_headers` containing an array of headers and `$args->column_callbacks` containing an array of callbacks. And yet another example would be to add `$args->meta_boxes` which would include a keyed array of `meta_box` args. 
    1313 
    1414As stated, some of those examples are ones I currently would like to be able to streamline by specifying in the `register_post_type()` call making it easier to define a full-features custom post type, and some of these examples of trying to keep WordPress from doing work to create data that is simply going to be thrown away.