add_post_type_support [ WordPress Function ]
| Parameters: |
|
| Defined at: |
|
Register support of certain features for a post type.
All features are directly associated with a functional area of the edit screen, such as the editor or a meta box: 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 'thumbnail', and 'custom-fields'.
Additionally, the 'revisions' feature dictates whether the post type will store revisions, and the 'comments' feature dictates whether the comments count will show on the edit screen.
Source
<?php
function add_post_type_support( $post_type, $feature ) {
global $_wp_post_type_features;
$features = (array) $feature;
foreach ($features as $feature) {
if ( func_num_args() == 2 )
$_wp_post_type_features[$post_type][$feature] = true;
else
$_wp_post_type_features[$post_type][$feature] = array_slice( func_get_args(), 2 );
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/add post type support « WordPress Codex
Description. Register support of certain features for a given post type (s). All features are directly associated with a functional area of the edit screen, such as the ...
codex.wordpress.org - add_post_type_support « Functions « WordPress « Watch of the ...
Description of the function add_post_type_support located in the wp-includes / post.php file. Uses the global array $_wp_post_type_features. This function adds ...
www.web-warlocks.net - add_post_type_support() WordPress function reference, arguments ...
add_post_type_support(). Register support of certain features for a post type. All features are directly associated with a functional area of the edit screen, such as ...
queryposts.com - Michael Fields » add_post_type_support()
add_post_type_support(). One entry is associated with the term add_post_type_support(). Subscribe. Post Title, Comment Count, Comment Link. Excerpts for ...
wordpress.mfields.org