Get The Current Page Id In WordPress

$page_id = get_queried_object_id();

Leave a Comment