Viewing 15 Topics - 16 through 30 (of 30 total)
Author Posts
March 30, 2015 at 3:53 pm 40278
Nayem Nayem

We do not delete any post directly from our plugin it always show in the trash.

March 30, 2015 at 4:54 pm 40285
hatchmedia hatchmedia

Hey Nayem,

Yes, if I delete from the backend as an Admin, it does appear in the trash.

I do not allow Contributor users into the backend at all so am not currently able to test that option.

Damien

March 30, 2015 at 4:58 pm 40287
Nayem Nayem

If you are deleting a post from the frontend as admin is that appear in the trash?.

March 30, 2015 at 6:47 pm 40296
hatchmedia hatchmedia

Hi Nayem,

If I delete a post as the admin from the frontend, it still does not show in the trash in the backend.

You can see the process here: http://imgur.com/15S1ZzL,QEwP61v,ABaUdC8,oPhVvFW#0

The first image shows the newly created post in the front end.
The second image shows it in the backend.
Once I delete the image, I am receiving the Redirect Loop error which I have not noticed before.
If I then check the backend, the post is gone but there is still no trash can.

Hopefully this helps

Damien

March 30, 2015 at 7:21 pm 40301
Nayem Nayem

I have tested so many times in my side. If i delete a post from fronted it goes to the trash in the backend. Did you customize anything in our plugin?.

March 31, 2015 at 3:04 pm 40353
hatchmedia hatchmedia

Hi Nayem,

As far as I recall,the only thing I did with the plugin was add the following to my functions.php to allow multiple post types be displayed in the dashboard. I do not recall amending anything else.

function wpufe_dashboard_post_type( $args ) {
    $args['post_type'] = array( 'dogs', 'cats', 'others', 'post' );
 
    return $args;
}
 
add_filter( 'wpuf_dashboard_query', 'wpufe_dashboard_post_type' );

Damien

March 31, 2015 at 4:51 pm 40356
Nayem Nayem

Hello Damien,

Please open Wp user fronted/class/fronted-dashboard.php. In this file you will get this function- function delete_post(). Under this function you will get this line- `if ( ($maybe_delete->post_author == $userdata->ID) || current_user_can( ‘delete_others_pages’ ) ) {
wp_delete_post( $_REQUEST[‘pid’] );`

Please make sure that this line is same as like this line. If there is-wp_delete_post( $_REQUEST[‘pid’], true );` then it will delete the post directly. You have to make sure that this line has no- true.

Thanks.

March 31, 2015 at 5:44 pm 40366
hatchmedia hatchmedia

Hi Nayem,

Thanks for your continued support.

I have had a look at that line and I have the exact same thing as you.

Click here to see the unedited snippet from the frontend-dashboard.php file.

Damien

March 31, 2015 at 6:06 pm 40370
Nayem Nayem

Hello Damien,

If you can then test with the default post type. Everything will be fine there. I have tested so many times in our side. You have customized a post type and the problem is there.

March 31, 2015 at 7:20 pm 40382
hatchmedia hatchmedia

Hi Nayem,

I have mentioned on a number of occasions that I am trying this with the default post type.

The screen shots I sent were also from the default post type.

Damien

March 31, 2015 at 7:24 pm 40383
Nayem Nayem This reply has been marked as private.
March 31, 2015 at 8:49 pm 40394
hatchmedia hatchmedia This reply has been marked as private.
April 1, 2015 at 4:59 pm 40457
Nayem Nayem

Please provide your login details by using this form – http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

Thank you 🙂

April 2, 2015 at 3:56 pm 40539
hatchmedia hatchmedia

Hi Nayem,

I need to set up a test domain first as the site is live, so will do so asap and sent details over.

Thanks again

Damien

April 2, 2015 at 3:59 pm 40540
Nayem Nayem

Please let me know after submitting your site details.

Thanks.

Viewing 15 Topics - 16 through 30 (of 30 total)