How to check user profile page?

There is a static page assign for profile page under option page, you can check is the current page is profile page or others page by the following the code sample.



function is_user_profile_page(){
  $user_profile_page_id = get_option('user_profile_page_id');

  $current_page_id = get_the_ID();

  if($user_profile_page_id == $current_page_id){

    // execute your code here on profile page...



    // others page code here