Infinite 301 redirects after definitions in “Redirections” plugin?

Finally got it!! The right way to define a redirection when the content of the URL (either the original or the new one) is in Hebrew, is simply define then URL-encoded. For example: /%D7%9E%D7%95%D7%A1%D7%9A-%D7%9C%D7%9E%D7%A9%D7%90%D7%99%D7%95%D7%AA.html -> /%D7%9E%D7%95%D7%A1%D7%9A-%D7%9C%D7%9E%D7%A9%D7%90%D7%99%D7%95%D7%AA/ That’s it! This works like a charm and like it should. For encoding and decoding URL special characters (like … Read more

How can I save cookies to members

You can can read the cookie and check if the current user is logged in using get_current_user_id(). If they are just save the cookie value to the user_meta. $cookie_name=””; if( isset( $_COOKIE[$cookie_name] ) ) { $user_id = get_current_user_id(); if( $user_id ) { $meta_key = $cookie_name; $meta_value = $_COOKIE[$cookie_name]; update_user_meta( $user_id, $meta_key, $meta_value ); } }

How to hide the form after successful php execution

If I understand the code correctly, you are wanting to make the result_display() function call conditional by moving the post check to inside the shortcode function. ie. function display_shortcode() { ob_start(); if (isset($_POST[‘submit’])) {result_display();} else {html_form_code();} return ob_get_clean(); }