static function get_current_page_id() { global $post; if (!empty($_REQUEST['page_id']) && is_numeric($_REQUEST['page_id'])) { $post = get_post($_REQUEST['page_id']); setup_postdata($post); // WPML check $id = apply_filters('icegram_identify_current_page', $post->ID); self::$current_page_id = $id; } return self::$current_page_id; }