クラス WP_Query::is_front_page()
2014/12/16
WP_Query::is_front_page()
定義ファイル :/blog/wp-includes/query.php 8
1 2 3 4 5 6 7 8 9 | public function is_front_page() { // most likely case if ( 'posts' == get_option( 'show_on_front') && $this->is_home() ) return true; elseif ( 'page' == get_option( 'show_on_front') && get_option( 'page_on_front' ) && $this->is_page( get_option( 'page_on_front' ) ) ) return true; else return false; } |