s2Member 260927 and older has a critical remote code execution bug. Update to 261001.

Details

Developers

Customize WooCommerce Login Message with Filter

Show, hide, or conditionally control the WooCommerce login message with secnin_show_woocommerce_login_message (WP Security Ninja 5.215+).

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.php or 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.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image