WordPress 获取首页 ID

<?php
echo get_option('page_on_front'); //home page ID
echo get_option('page_for_posts');
?>