
如何使用浏览器检查元素工具
get_all_post_type_supports ( $post_type )
get_all_post_type_supports: 此函数返回所有已注册的文章类型及其支持的功能的数组,例如”标题”、”编辑器”和”作者”。
获取所有的文章类型特征
function get_all_post_type_supports( $post_type ) { global $_wp_post_type_features; if ( isset( $_wp_post_type_features[ $post_type ] ) ) { return $_wp_post_type_features[ $post_type ]; } return array(); }