secnin_show_woocommerce_login_message
Use this filter to show or hide the WooCommerce login message that WP Security Ninja can display.
Introduced in Security Ninja 5.215.
Before you start
- WP Security Ninja installed and active
- A place to add custom PHP (theme
functions.phpor a small custom plugin). Prefer a custom plugin over Theme Editor on production. See Add custom code.
Hide the login message
add_filter( 'secnin_show_woocommerce_login_message', '__return_false' );
Save, then check the WooCommerce login page.
Conditional display
Example: hide the message for logged-in users only:
add_filter( 'secnin_show_woocommerce_login_message', function() {
return ! is_user_logged_in();
});
More snippet help: custom code guide. Support: help page.