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

Change Password Confirmed Email Text

Use like this. add_filter( ‘password_change_email’, ‘wpse207879_change_password_mail_message’, 10, 3 ); function wpse207879_change_password_mail_message( $pass_change_mail, $user, $userdata ) { $new_message_txt = __( ‘Some text ###USERNAME### more text even more text ###EMAIL### more text after more text last bit of text ###SITENAME###’ ); $pass_change_mail[ ‘message’ ] = $new_message_txt; return $pass_change_mail; } Reference of the above code is: Change Password … Read more