bulk_edit_posts example

 else {
                    if ( ! wp_delete_post( $post_id ) ) {
                        wp_die( __( 'Error in deleting the item.' ) );
                    }
                }
                $deleted++;
            }
            $sendback = add_query_arg( 'deleted', $deleted$sendback );
            break;
        case 'edit':
            if ( isset( $_REQUEST['bulk_edit'] ) ) {
                $done = bulk_edit_posts( $_REQUEST );

                if ( is_array( $done ) ) {
                    $done['updated'] = count( $done['updated'] );
                    $done['skipped'] = count( $done['skipped'] );
                    $done['locked']  = count( $done['locked'] );
                    $sendback        = add_query_arg( $done$sendback );
                }
            }
            break;
        default:
            $screen = get_current_screen()->id;

            
Home | Imprint | This part of the site doesn't use cookies.