📜  wordpres get_posttype - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:22.045000             🧑  作者: Mango

代码示例1
if ( get_post_type( get_the_ID() ) == 'slug_post_type' ) {
    //if is true
}