I think your best bet is to check if the action parameter is set & equal to register:
if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'register' )
add_filter( 'login_message', 'filter_register_text' );
Related Posts:
- Editing ‘Password Reset’ E-mail
- Change “You are now logged out” text
- Removing labels and tag on WordPress’s default login form
- Customize user account activation message
- add filter login_redirect does not contain original requested redirect
- Change username before login
- Custom Login Errors and variables I can use
- Correct method of redirecting user login
- Filters on Login Page
- How can I change the email that is inside the default email texts of wordpress?
- How do I hook my function to run only after submitting login form
- Change login CSS
- How to redirect non-logged in users to login with post_password_required()
- Filter page title (displayed in browser tab) of wp-login
- How to redirect a unique link based on login status
- login_url filter creates permanent wp-admin -> wp-login redirection loop
- Login logout below menu bar
- Hook into ‘when user logs in’ [persistent login]
- Change password reqts with NO plugin without breaking resetpass link?
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- LESS CSS enqueue_style with add_filter to change rel attribute
- Remove Editor From Homepage
- What do add_filters() and apply_filter() do?
- What to use instead of the content_save_pre filter?
- Moving sharedaddy buttons (in Jetpack) to the top of a post?
- How can I customize the wp_list_categories
- How can I reliably and globally disable wptexturize?
- Customise Jetpack Publicize text
- Can’t change a label in woocommerce with the normal filter
- WordPress RSS feed – filter RSS content by custom field value
- Add classname to the_category() function?
- Filter the URL of next_posts_link & previous_posts_link
- Sensei LMS Hooks to Remove Content
- How to re-enable a filter after disabling with __return_false
- Anonymous function is executed twice in wp_head while added from the_posts filter?
- add_filter return value
- Why my admin doesn’t work after adding rest_prepare_post filter?
- How to make a button?
- How do I filter title and alt attributes in the gallery shortcode?
- remove_action in plugin file
- How to apply filter at search of woocommerce products?
- Filtering post-formats from the loop using new WP-Query();
- Filter Media by Featured on Admin
- How to add a filter to get_the_author_meta?
- When does a function assigned to the content_filtered_edit_pre filter hook fire?
- page_attributes_dropdown_pages_args filter does not work
- What different ways can a plugin add a filter to a WordPress site?
- How to access plugin variables from theme templates without using globals?
- Make an array filterable per hook
- How to pass variables to custom filter from multiple functions
- wp_mail works with add_action(‘save_post’, …) but not an ajax action
- add_filter with retrieve_password_message() not working in plugin, but works in functions.php
- Can i use multiple ‘the_content’ filters?
- Is it possible to put the add-filter()-hook into a function?
- How can I return shortcode output to the top of the content?
- separate categories with comma and srounded by single quote
- Filter for when the post is updated
- Prevent add_filter being applied to wp-admin pages
- term_link filter gives less atributes
- Filter a pluggable function
- apply_filters(‘get_the_content’, $content) + Except
- Filter everything from content except output of a shortcode
- Add mime types with plugin
- Filter media upload attachment meta
- Filter have_posts()/ the_post()
- Filter wp_redirect() to stop redirect under certain condition
- Filter get_page_by_path()
- Handle multiple parameters in filter
- How to add filter in custom rss feed
- Want to use wp_get_current_user() in query filter
- Echo string in admin panel footer beside version no
- How to change default text for specific post type
- Add PHP code after title in single post pages?
- How To Get Search Term and Use in Function
- How to set a filter search for categories of blog posts in wordpress
- How to pass a variable between filter/action functions?
- Filter the title to only affect the_title() template function
- How can I filter the comment action links so that I can display the actions links based on user capabilities?
- Adding link options in insert/edit link dialog window
- how to unescape wordpress output
- How can I limit access to uploaded media depending on the logged in user’s user role?
- How can I filter same content in page
- WordPress Tag Cloud Filter Prevents Widget HTML from loading
- Using add_filters() , apply_filter(), add_action() and do_action() in extending a plugin
- the_content filter not working when Jetpack activated. Any idea?
- Adding Filter | Page Title | Template | Why the_title affecting on menu?
- gettext filter does nothing
- Code restricted to dashboard, running unexpectedly in the frontend (pre_get_post and admin-ajax.php)
- Why none of xmlrpc filters work
- How to use the filter ‘widget_text’ to a particular text widget with id
- Filter for wp_embed_handler_youtube not working
- Post Type Upload Directory – {post_type}_upload_dir filter
- Filter on widget-title does not work with custom links
- Custom registration field to SQL database
- How to reset/remove added filters ‘posts_join’ and ‘posts_orderby’ after the loop is completed?
- WordPress wp_lazy_loading_enabled returns loading attribute set to lazy
- Deregister Custom the_title Filter for edit_post_link
- Is it possible to dynamically change the “page_for_posts” option?
- Is there a way to override only a portion of the function print_media_templates defined in wp-includes\media-template.php?
- How to override hook from themes functions.php which is defined in plugin