exclude_hardcoded_items_from_selected_items( $validation_answer, 'posts_meta', "wp" ); $grouped = ADBC_Selected_Items_Validator::group_selected_items_by_site_id( $cleaned_posts_meta ); $not_processed = ADBC_Posts_Meta::delete_posts_meta( $grouped ); // Delete the posts meta from the scan results $posts_meta_names = array_column( $cleaned_posts_meta, 'name' ); // Create an array containing only the posts meta names. ADBC_Scan_Utils::update_scan_results_file_after_deletion( 'posts_meta', $posts_meta_names, $not_processed ); return ADBC_Rest::success( "", count( $not_processed ) ); } catch (Throwable $e) { return ADBC_Rest::error_for_uncaught_exception( __METHOD__, $e ); } } }