Deactivate front end delete

Support MB Frontend Submission Deactivate front end delete

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38553
    danieldkdanieldk
    Participant

    I have been playing with the user dashboard.

    How can i deactivate the capability of users to delete their own content?

    #38559
    Long NguyenLong Nguyen
    Moderator

    Hi Daniel,

    You can use this filter hook rwmb_frontend_dashboard_delete_action to remove the delete button in the frontend dashboard. For example:

    add_filter( 'rwmb_frontend_dashboard_delete_action', function( $delete_action, $post_id ) {
        $delete_action = false;
        return $delete_action;
    }, 10, 2 );

    Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#dashboard-hooks

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.