发布时间:2020-09-17
WordPress 日志的功能支持( Post Type Supports),
一共有下面这几种,记录一下,方便以后查询:
一般在 register_post_type
的 supports 的参数中设定,之后可以通过 get_all_post_type_supports( $post_type )
函数来获取指定 $post_type 的所有 supports。
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
如果一开始设置不好,还可以通过 add_post_type_support( $post_type, $feature )
函数来额外增加,也可以 remove_post_type_support( $post_type, $feature )
函数来去掉。
最后还可以通过 post_type_supports( $post_type, $feature )
函数来判断某个 $post_type 是否支持某个 $feature。
本站推荐使用的主机:,国外主机建议使用。
全站搜索