Front end ajax user login session issue

You are not setting an authentication cookie. The second parameter of the wp_signon function is set to false. This function sets an authentication cookie. Users will not be logged in if it is not sent. $user_signon = wp_signon( $info, true ); That should give you the result you desire

Redirect after delete post in Frontend

I got a little bit more into this topic and found this solution which works perfect for me. 1 Add this code to functions.php: // Delete post function delete_post(){ global $post; $deletepostlink= add_query_arg( ‘frontend’, ‘true’, get_delete_post_link( get_the_ID() ) ); if (current_user_can(‘edit_post’, $post->ID)) { echo ‘<span><a class=”post-delete-link” onclick=”return confirm(\’¿Are you sure to delete?\’)” href=”‘.$deletepostlink.'”>Borrar</a></span>’; } } … Read more

WordPress front-end post form and email after

Put this after your if empty $errors and edit to meet your needs: if(empty($errors)) { $subject = __(‘[Your Subject]’, ‘your_text_domain’).’ ‘.$title; $body = __(“Name: “,”your_text_domain”).$booking_name; $body .= __(“\n\nEmail: “,”your_text_domain”).$booking_email; $body .= __(“\n\nPhone: “,”your_text_domain”).$booking_phone; $body .= __(“\n\nMessage: “,”your_text_domain”).$message; $headers = __(‘From: [email protected] ‘, ‘your_text_domain’).’ <‘.$booking_email.’>’ . “\r\n” . __(‘Reply-To: ‘,’your_text_domain’) . $email; // Change this $email … Read more

wp_update_post via ajax from frontend

You can stop post revisions using define(‘WP_POST_REVISIONS’, false); in wp-config.php or try below if it works. function save_page() { exit( wp_update_post( array( ‘ID’ => absint( esc_attr( $_POST[‘postID’] ) ), ‘post_type’ =>’your post type’ ‘post_content’ => esc_attr( $_POST[‘content’] ) ) ) ); }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)