📜  is_page () - 任何代码示例

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

代码示例1
if ( is_page( array( 'about-us', 'contact', 'management' ) ) ) {
     // either in about us, or contact, or management page is in view
} else {
     // none of the page about us, contact or management is in view
}