How to check post type when using sanitize_title hook?
As @Jacob mentioned, is an generic utility function used in many contexts and therefore, you might want to either use other approach or hook it selectively through other hook where you would have $post object (e.g. edit_post or other way to define if the post edited is of page type. Something along these lines: <?php … Read more