Tag Info

New answers tagged

0

I thought that this snippet of code may be helpful for anyone looking to customize the reset password email. //* Password reset activation E-mail -> Body add_filter( 'retrieve_password_message', 'wpse_retrieve_password_message', 10, 2 ); function wpse_retrieve_password_message( $message, $key ){ $user_data = ''; // If no value is posted, return ...


0

Use a hook that fires later and add the $bp global to the function. Try this: function bp_password_beefing() { global $bp; if ( !empty( $_POST['signup_password'] ) ) if ( strlen( $_POST['signup_password'] ) < 6 ) $bp->signup->errors['signup_password'] = __( 'Your password needs to be at least 6 characters', 'buddypress' ); } ...


0

add_filter("retrieve_password_message", "your_custom_message", 99, 2); function your_custom_message($message, $key) { $message = "your_custom_message"; return $message; } This is an example of usage of 'retrieve_password_message' filter hook. This is to override the email body which someone gets while retrieving the password.


0

In the table PREFIX_usermeta look for the PREFIX_capabilities key that is setup for the admin ID (probably 1). You should be able to edit that row and change "subscriber" to "administrator"


0

Save this as new.sql file. Change wp_ suffix in this sql query with your wordpress database suffix. If you haven't change it then it will be wp_ by default. INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES ('newadmin', MD5('pass123'), 'firstname lastname', 'email@example.com', '0'); INSERT INTO ...


0

I'm currently unable to test but, If you still have FTP access stick this somewhere and run it. Replacing $user_id with your ID and it should work. $user = new WP_User($user_id); $user->remove_role('subscriber'); $user->add_role('administrator');


0

If you have WP CLI, this is how you would make the user 'bob' an administrator: wp user set-role bob administrator


1

I think you're looking for the retrieve_password_title filter. For example: add_filter( 'retrieve_password_title', function( $title ) { $title = __( 'WPSE Custom Password Reset' ); return $title; } );


6

It is a bug in wp-members plugin. Others have reported the same error. http://user-meta.com/forums/topic/able-to-save-plain-text-passwords-as-a-user-meta-value/ http://wordpress.org/support/topic/wp-member-passwords-are-stored-in-clear-text-in-database-highly-insecure


13

You cannot export passwords as plaintext in WordPress, because they are not stored in plaintext. What you see here is obviously the result of a very bad plugin. Fields like Payment, Sex or Company are not even part of the regular WordPress tables. For the future: Do not install plugins without prior tests and reviews in a safe environment. Use a local ...


0

You should probably add in more checks, but this should get you started. function change_pw_text($content) { // Just to save processing other pages. if ( !is_page('page-slug-one') && !is_page('page-slug-two') ) return $content; $find = 'This post is password protected. To view it please enter your password below:'; if ( ...



Top 50 recent answers are included