Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* Create custom message for new users */ function custom_email_for_news_user( $wp_new_user_notification_email, $user, $blogname ) { $key = get_password_reset_key( $user ); /* translators: %s: User login. */ $custom_message = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n"; $custom_message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n"; $custom_message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n"; $custom_message .= home_url() . "\r\n"; $wp_new_user_notification_email['message'] = $custom_message; return $wp_new_user_notification_email; } add_filter( 'wp_new_user_notification_email', 'custom_email_for_news_user', 99, 3 );
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)