post.php

add_post_type_support

By the Web Warlock, Wednesday, 28/Jul/2010 4:43

<?php add_post_type_support( $post_type, $feature ) ?>

add_post_type support: Source code

By the Web Warlock, Wednesday, 28/Jul/2010 3:36

Source code of the function add_post_type_support, located in the file wp-includes/post.php

register_post_type

By the Web Warlock, Thursday, 24/Jun/2010 10:06

<?php register_post_type( $post_type, $args = array(
		'labels' => array(), 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null,
		'_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'capabilities' => array(), 'hierarchical' => false,
		'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null,
		'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null,
		'permalink_epmask' => EP_PERMALINK, 'can_export' => true, 'show_in_nav_menus' => null ) ); ?>

register_post_type: Source code

By the Web Warlock, Wednesday, 23/Jun/2010 20:09

Source code of the WordPress function register_post_type.