The second argument should be a function callback, not the actual message. You can remove the message completely by pasting this code into your theme’s functions.php file:
add_filter( 'new_user_approve_welcome_message', 'wpse_76823_login_message' );
function wpse_76823_welcome_message( $message ) {
return '';
}
Or, you can replace the message by using this code:
add_filter( 'new_user_approve_welcome_message', 'wpse_76823_login_message' );
function wpse_76823_welcome_message( $message ) {
return "This is my new message";
}
If you need more help, post a comment below.
Related Posts:
- How to create custom message on plugin update
- wp_dequeue_style not working
- Stop a plugin in the activation process when a certain WP version is not met then show error message in admin_notices action hook
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to Add an Index to Plugin Database table
- How to add “Stick this post to the front page” to front end?
- Creating two database tables via plugin
- Is it a good idea to edit an already existing plugin to add more functionality?
- How to make media upload private? [duplicate]
- How to trace the cause of these PHP notices and warnings for class-wp-query.php?
- Modify featured image URL at runtime
- Some plugins adding full server path after url (with custom wp-content folder)
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Is it possible to block subscriber users to changing its password?
- Woocommerce: Changing the variations select default value? [closed]
- Why load_textdomain work but not load_plugin_textdomain?
- Get uploaded image url
- Akismet plugin is deleting spam despite preferences
- Star rating for custom post types [closed]
- Passing select control value to block
- How to add custom JS to tinymce in wordpress
- Collaborative post submission [closed]
- Reuse javascripts from plugins within the theme
- $wpdb working with ajax but showing ajax error instead of success
- WordPress is giving errors after activating WP_DEBUG
- plugins_url function mixes system path and URL
- Inserting large amounts of data into a custom table during plugin install
- Wondering what these multi-colored extra pages are?
- Facebook Like needs confirmation?
- How does automatic redirection for the redirection plugin work?
- Need help restoring my WordPress blog
- Loading child theme script after plugins scripts
- Remove ALL css for a specific plugin page
- Is WP feature image function cropping images? WP Content Slideshow
- WordPress display breadcrumbs using Yoast plugin [closed]
- Linux Permissions and Ownership for WordPress
- how to use in custom single.php template using php?
- Howto check version of another plugin and then add a submenu page to it
- allow photo/video in comments
- Excluding private/protected posts via IP
- Can’t get Gutenberg InspectorControls to work
- Some one is trying to hack my website, Need guidance [closed]
- WordPress premium theme development [duplicate]
- Mass SQL WordPress Meta Key deletion
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to pass the API key to the client from the database? [closed]
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- How do I make a secure API call from a shortcode when a button is clicked?
- How to change the wp_upload_dir() path in plugin
- Ambrosite Next/Previous Post Link Plus or WP next_post_link to cycle through top level category
- How to add options to the plugin page?
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- How can I redirect some pages to new subdomain? [closed]
- wp-mail attachment is not sent for no reason?
- Plugin has added weird data in wp_options, set to autoload
- how to execute some code after a post is published in WordPress [duplicate]
- I can’t change permalink in WordPress 4.5.3
- Designing a plugin that uses an iFrame to process data in admin
- Could not add ‘LoginLogout’ link using BAW login logout plugin
- Can’t create new CPTs when menu hidden
- Localise settings section headline
- Google Appointments in WordPress?
- Codeless random token generation to pass into multiple tracking links in a single page load
- wp_options not returning value for logged out users?
- Gutenberg default attributes are empty when accessing in edit
- how to create a custom page in child theme or plugin?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function
- Hide all Admin Notices and move on a separate page
- Display a number value from mysql query in WP
- Front Page of Site Has Gone Replaced By Random Page
- Creating categories while importing via CSV
- How can I show login popup when user clicks on download button
- Website content not displayed anymore after updates
- Flexslider empty slide
- WordPress plugin changes not updating
- Adding javascript to header of MetroMagazine theme
- How to Save settings of custom tab product page in admin side in a database?
- Issue: CSV file upload works only when “View page source” is done
- Meta box: Undefined index
- Unable to Retrieve Setting Value for my Plugin
- galleria for WordPress not working properly on Mobile devices (responsive)?
- Get plugin versions in xml/json format
- Shortcode registered from a plugin not recognized
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- How to submit readme.txt file in wordpress directory
- wordpress shortcode A executing code from shortcode B
- Plugin for Reading Documents, PDF’s etc
- How to create plugin list groups?
- Show latest and related articles from 3 different blogs
- Woocommerce custom fields
- WordPress Code Access to Restricted Content without Registration
- How to pre-set WordPress settings for specific posts?
- Two sites one PC
- PHP if url extension action=discussion condition use [closed]
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- How to get URL param for pagination in shortcode?
- How to add an active state class to my info box
- Using ACF to allow user to add and edit multiple saved forms
- Difficult case to solve – Select + select = result(related data)
- How to disable display all posts from all categories?