What is the best way to reset a search on a meta_key / meta_value?

I wouldn’t push the meta query entries like that but build it more logical. So for example: $meta_query_args = array( ‘relation’ => ‘AND’ ); // assuming you want ‘AND’ search, you’re using both in your example if ( ! empty( $_POST[‘city’] ) && $_POST[‘city’] != ‘0’ ) { $meta_value_ville = $_POST[‘city’]; $meta_query_args[‘city_clause’] = array( ‘key’ … Read more

Sending Reset Password email via Web API

You can hook retrieve_password_message (code): /** * Filters the message body of the password reset mail. * * If the filtered message is empty, the password reset email will not be sent. * * @param string $message Default mail message. * @param string $key The activation key. * @param string $user_login The username for the … Read more