Home Forums Plugin Support WP User Frontend Pro Trash is missing from the backend

This topic is: not resolved

Tagged: , ,

This topic contains 30 replies, has 2 voices, and was last updated by  Nayem 3 years, 11 months ago.

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #40277

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Can you please confirm me that from the backend if you delete a post is that appear in the trash?.

    #40278

    Nayem
    Moderator
    Post count: 6480

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

    #40285

    hatchmedia
    Participant
    Post count: 116

    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

    #40287

    Nayem
    Moderator
    Post count: 6480

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

    #40296

    hatchmedia
    Participant
    Post count: 116

    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

    #40301

    Nayem
    Moderator
    Post count: 6480

    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?.

    #40353

    hatchmedia
    Participant
    Post count: 116

    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

    #40356

    Nayem
    Moderator
    Post count: 6480

    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.

    #40366

    hatchmedia
    Participant
    Post count: 116

    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

    #40370

    Nayem
    Moderator
    Post count: 6480

    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.

    #40382

    hatchmedia
    Participant
    Post count: 116

    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

    #40383

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
    #40394

    hatchmedia
    Participant
    Post count: 116
    This reply has been marked as private.
    #40457

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #40539

    hatchmedia
    Participant
    Post count: 116

    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

Viewing 15 posts - 16 through 30 (of 31 total)

The topic ‘Trash is missing from the backend’ is closed to new replies.