Changeset 45422 for trunk/src/wp-includes/post.php
- Timestamp:
- 05/25/2019 11:40:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r45219 r45422 1743 1743 1744 1744 /** 1745 * Register support of certain features for a post type.1745 * Registers support of certain features for a post type. 1746 1746 * 1747 1747 * All core features are directly associated with a functional area of the edit … … 1754 1754 * count will show on the edit screen. 1755 1755 * 1756 * Example usage: 1757 * 1758 * add_post_type_support( 'my_post_type', 'comments' ); 1759 * add_post_type_support( 'my_post_type', array( 1760 * 'author', 'excerpt', 1761 * ) ); 1762 * add_post_type_support( 'my_post_type', 'my_feature', array( 1763 * 'field' => 'value', 1764 * ) ); 1765 * 1756 1766 * @since 3.0.0 1757 1767 * … … 1761 1771 * @param string|array $feature The feature being added, accepts an array of 1762 1772 * feature strings or a single string. 1773 * @param mixed ...$args Optional extra arguments to pass along with certain features. 1763 1774 */ 1764 1775 function add_post_type_support( $post_type, $feature ) {
Note: See TracChangeset
for help on using the changeset viewer.