Skip to content

Instantly share code, notes, and snippets.

@wp-user-manager
Created September 15, 2021 10:37
Show Gist options
  • Save wp-user-manager/65f31379d02c599420d38a8dafa9a0d2 to your computer and use it in GitHub Desktop.
Save wp-user-manager/65f31379d02c599420d38a8dafa9a0d2 to your computer and use it in GitHub Desktop.
WP User Manager - Alter the privacy checkbox text
<?php
add_filter( 'wpum_privacy_text', 'wpum_change_message', 10, 3 );
function wpum_change_message( $text, $privacy_url, $blogname ) {
return sprintf( __( 'I have read and accept the <a href="%1$s" target="_blank">privacy policy</a> and allow %2$s to collect and store the data I submit through this form.', 'wp-user-manager' ), $privacy_url, $blogname );
}
@wp-user-manager
Copy link
Author

Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment