Tag Info

Hot answers tagged


You're close - let's take a look at this line: if( 'post' == $post->post_type && count_user_posts(the_author_meta('ID') == 1); ) That semicolon is a syntax error, PHP will barf - let it go the_author_meta() prints data, it does not return anything - use get_the_author_meta() for comparisons and passing things around The post count comparison ...


If I understand you correctly, then you only want to change the text of the mail. This you can do via the filter hook password_change_email. No need to redeclare the function, which you actually can't do. Below you find an example on how to use the password_change_email filter to change your message text. add_filter( 'password_change_email', ...

Only top voted, non community-wiki answers of a minimum length are eligible